You are here

function messaging_template_admin_template_edit in Messaging 6.4

Message groups edit page

1 string reference to 'messaging_template_admin_template_edit'
messaging_template_menu in messaging_template/messaging_template.module
Implementation of hook_menu()

File

messaging_template/messaging_template.admin.inc, line 144
Messaging Framework - Admin UI

Code

function messaging_template_admin_template_edit($group, $langcode = NULL) {
  $breadcrumb[] = l(t('Home'), '<front>');
  $breadcrumb[] = l(t('Message templates'), 'admin/messaging/template');
  drupal_set_breadcrumb($breadcrumb);
  $language_list = language_list();
  $language = $language_list[$langcode];
  $output = '';
  if ($group && $language) {
    drupal_set_title(t('Template for %name', array(
      '%name' => $group['name'],
    )));

    // Build navigation tree
    $output .= drupal_get_form('messaging_template_admin_message_form', $group, $language);
  }
  return $output;
}