function messaging_menu in Messaging 5
Same name and namespace in other branches
- 6.4 messaging.module \messaging_menu()
- 6 messaging.module \messaging_menu()
- 6.2 messaging.module \messaging_menu()
- 6.3 messaging.module \messaging_menu()
- 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;
}