function theme_addanother_button_message in Add Another 7.2
Displays a message and link to the added/edited node after submit.
1 theme call to theme_addanother_button_message()
- addanother_node_form_submit in ./
addanother.module - Form submit handler for node_form().
File
- ./
addanother.module, line 280 - The main file for the addanother module.
Code
function theme_addanother_button_message($variables) {
$node = node_load($variables['nid']);
$t_args = array(
'@type' => node_type_get_name($node),
'!title' => l(drupal_placeholder($node->title), 'node/' . $node->nid, array(
'html' => TRUE,
)),
);
drupal_set_message(t('@type !title has been created. You may now create another.', $t_args));
return array();
}