You are here

function sheetnode_insert in Sheetnode 6

Same name and namespace in other branches
  1. 5 sheetnode.module \sheetnode_insert()
  2. 7.2 sheetnode.module \sheetnode_insert()
  3. 7 sheetnode.module \sheetnode_insert()

Implementation of hook_insert().

File

./sheetnode.module, line 274

Code

function sheetnode_insert($node) {
  if ($node->sheetnode['value']) {
    _sheetnode_save($node->nid, $node->vid, $node->sheetnode['value']);
  }
  if ($node->sheetnode['template'] && user_access('create sheetnode template')) {
    _sheetnode_template_save($node->vid, $node->sheetnode['template'], $node->sheetnode['value']);
  }
}