You are here

function sheetnode_insert in Sheetnode 5

Same name and namespace in other branches
  1. 6 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 156

Code

function sheetnode_insert($node) {
  if ($node->sheetsave) {
    _sheetnode_save($node->nid, $node->vid, $node->sheetsave);
  }
  if ($node->template && user_access('create sheet template')) {
    _sheetnode_template_save($node->vid, $node->template, $node->sheetsave);
  }
}