You are here

function auto_nodetitle_nodeapi in Automatic Nodetitles 6

Same name and namespace in other branches
  1. 5 auto_nodetitle.module \auto_nodetitle_nodeapi()

Implementation of hook_nodeapi().

File

./auto_nodetitle.module, line 63
Allows hiding of the node title field and automatic title creation

Code

function auto_nodetitle_nodeapi(&$node, $op) {
  if ($op == 'presave' && auto_nodetitle_is_needed($node)) {
    auto_nodetitle_set_title($node);
  }
}