You are here

function commons_notify_node_insert in Drupal Commons 7.3

Implements hook_node_insert(). In order to respect node access restrictions, we register a shutdown function, because node access grants haven not been written by the time hook_node_insert() is invoked. For more background, see https://drupal.org/node/1918666.

File

modules/commons/commons_notify/commons_notify.module, line 17

Code

function commons_notify_node_insert($node) {
  drupal_register_shutdown_function('commons_notify_send_message_on_shutdown', $node);
}