Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

drupal 7 hook_node_insert

function hook_node_insert($node) {
  db_insert('mytable')
    ->fields(array(
    'nid' => $node->nid,
    'extra' => $node->extra,
  ))
    ->execute();
}
Source by api.drupal.org #
 
PREVIOUS NEXT
Tagged: #drupal
ADD COMMENT
Topic
Name
3+6 =