node_access_example_node_update

Versions
7
node_access_example_node_update($node)

Implementation of hook_node_update().

The module must track the access status of the node.

Code

developer/examples/node_access_example.module, line 154

<?php
function node_access_example_node_update($node) {
  db_query('UPDATE {node_access_example} SET private = %d WHERE nid = %d', $node->private, $node->nid);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.