You are here

function csm_node_prepare in Custom Submit Messages 7

Implements hook_node_prepare().

File

./csm.module, line 274
The main module file for Custom Submit Messages.

Code

function csm_node_prepare($node) {
  if (!isset($node->nid)) {

    // Adding a new node. Store the node in the variable table so that it can be retrieved
    // by hook_form_alter and token substitutions can be done properly on the title of
    // the page.
    _csm_variable_set('csm_node_temp', $node);
  }
  return;
}