You are here

function theme_addanother_message_message in Add Another 7.2

Displays a message and link to the added/edited node after submit.

1 theme call to theme_addanother_message_message()
addanother_node_form_message_submit in ./addanother.module
Form submit handler for node_form() considering the 'message'.

File

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

Code

function theme_addanother_message_message($variables) {
  $node = $variables['node'];
  $parameters = drupal_get_query_parameters();
  $t_args = array(
    '@type' => node_type_get_name($node),
    '@typeurl' => url(_addanother_node_add_path($node), array(
      'query' => $parameters,
    )),
    '%title' => $node->title,
  );
  $addanother_message = t('@type %title has been created. You may <a href="@typeurl">add another @type</a>.', $t_args);
  drupal_set_message($addanother_message);
  return array();
}