Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

drupal 7 hook_node_update

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