You are here

function auto_nodetitle_node_presave in Automatic Nodetitles 7

Same name and namespace in other branches
  1. 8 auto_nodetitle.module \auto_nodetitle_node_presave()

Implements hook_node_presave().

File

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

Code

function auto_nodetitle_node_presave($node) {

  // If not yet done, generate the title now.
  if (auto_nodetitle_is_needed($node)) {
    auto_nodetitle_set_title($node);
  }
}