You are here

function siteimprove_node_insert in Siteimprove 7

Implements hook_node_insert().

File

./siteimprove.module, line 78
Drupal Module: Siteimprove Plugin.

Code

function siteimprove_node_insert($node) {
  if ($node->status == 1 && user_access(SITEIMPROVE_PERMISSION_USE)) {
    SiteimproveUtils::setSessionUrl($node, 'nid', 'node/');
  }
}