You are here

function messaging_menu in Messaging 5

Same name and namespace in other branches
  1. 6.4 messaging.module \messaging_menu()
  2. 6 messaging.module \messaging_menu()
  3. 6.2 messaging.module \messaging_menu()
  4. 6.3 messaging.module \messaging_menu()
  5. 7 messaging.module \messaging_menu()

Implementation of hook_menu()

File

./messaging.module, line 51

Code

function messaging_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'title' => t('Messaging'),
      'path' => 'admin/messaging',
      'callback' => 'messaging_admin_overview_page',
      'access' => user_access('administer messaging'),
      'description' => t('Administration of messages and sending methods'),
    );
    $items[] = array(
      'title' => t('Messaging methods'),
      'description' => t('Configuration of sending methods'),
      'path' => 'admin/messaging/settings',
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'messaging_admin_settings',
      ),
    );
    $items[] = array(
      'title' => t('Messaging templates'),
      'callback' => 'messaging_admin_template_overview',
      'description' => t('Configuration of message templates'),
      'path' => 'admin/messaging/template',
    );
    $items[] = array(
      'title' => t('Messaging templates'),
      'path' => 'admin/messaging/template/edit',
      'callback' => 'messaging_admin_message_edit',
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}