function addanother_form_alter in Add Another 6
Same name and namespace in other branches
- 5 addanother.module \addanother_form_alter()
- 7.2 addanother.module \addanother_form_alter()
Implementation of hook_form_alter().
File
- ./
addanother.module, line 155 - Presents users with an option to create another node of the same type after a node is added.
Code
function addanother_form_alter(&$form, $form_state, $form_id) {
if (isset($form['#node']) && $form['#node']->type . '_node_form' == $form_id && variable_get('addanother_message', TRUE)) {
$form['buttons']['submit']['#submit'][] = '_addanother_message';
}
}