You are here

function addanother_node_form_message_submit in Add Another 7.2

Same name and namespace in other branches
  1. 8 addanother.module \addanother_node_form_message_submit()

Form submit handler for node_form() considering the 'message'.

Submit handler if the normal submit button was pressed, however the node has the 'message' feature enabled.

1 string reference to 'addanother_node_form_message_submit'
addanother_form_alter in ./addanother.module
Implements hook_form_alter().

File

./addanother.module, line 222
The main file for the addanother module.

Code

function addanother_node_form_message_submit($form, &$form_state) {
  if ($node = _addanother_get_node_from_form_state($form_state)) {
    _addanother_quelch_message($node);
    theme('addanother_message_message', array(
      'node' => $node,
    ));
  }
}