Drupal 7 Hook Node Insert

[Solved] Drupal 7 Hook Node Insert | Php Frameworks Drupal - Code Explorer | yomemimo.com
Question : drupal 7 hook_node_insert

Answered by : officiallym

function hook_node_insert($node) { db_insert('mytable') ->fields(array( 'nid' => $node->nid, 'extra' => $node->extra, )) ->execute();
}

Source : https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_insert/7.x | Last Update : Wed, 13 Apr 22

Answers related to drupal 7 hook node insert

Code Explorer Popular Question For Php Frameworks Drupal