You are here

function messaging_template_menu in Messaging 6.3

Same name and namespace in other branches
  1. 6.4 messaging_template/messaging_template.module \messaging_template_menu()

Implementation of hook_menu()

File

messaging_template/messaging_template.module, line 46
Template system for Messaging Framework

Code

function messaging_template_menu() {
  $items['admin/messaging/template'] = array(
    'title' => 'Message templates',
    'description' => 'Configuration of message templates',
    'page callback' => 'messaging_template_admin_overview',
    'access arguments' => array(
      'administer messaging',
    ),
    'file' => 'messaging_template.admin.inc',
  );
  $items['admin/messaging/template/overview'] = array(
    'title' => 'Active',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/messaging/template/settings'] = array(
    'title' => 'Options',
    'description' => 'Enable templates',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'messaging_template_admin_settings',
    ),
    'access arguments' => array(
      'administer messaging',
    ),
    'file' => 'messaging_template.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/messaging/template/edit'] = array(
    'title' => 'Message templates',
    'page callback' => 'messaging_template_admin_edit',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'administer messaging',
    ),
    'file' => 'messaging_template.admin.inc',
  );
  return $items;
}