function theme_addanother_button_message

cis7 addanother.module theme_addanother_button_message($variables)
cle7 addanother.module theme_addanother_button_message($variables)
elmsmedia7 addanother.module theme_addanother_button_message($variables)
icor7 addanother.module theme_addanother_button_message($variables)
meedjum_blog7 addanother.module theme_addanother_button_message($variables)
mooc7 addanother.module theme_addanother_button_message($variables)

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 sites/all/modules/ulmus/addanother/addanother.module
Submit handler for the 'Save and add another' button. This allows a redirect to be set if this was the button pressed.
2 string references to the theme hook from theme_addanother_button_message()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

addanother_node_form_submit in sites/all/modules/ulmus/addanother/addanother.module
Submit handler for the 'Save and add another' button. This allows a redirect to be set if this was the button pressed.
addanother_theme in sites/all/modules/ulmus/addanother/addanother.module
Implement hook_theme().

File

sites/all/modules/ulmus/addanother/addanother.module, line 226
Presents users with an option to create another node of the same type after a node is added.

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();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.