function notifications_ui_menu in Notifications 6.4
Same name and namespace in other branches
- 5 notifications_ui/notifications_ui.module \notifications_ui_menu()
- 6 notifications_ui/notifications_ui.module \notifications_ui_menu()
- 6.2 notifications_ui/notifications_ui.module \notifications_ui_menu()
- 6.3 notifications_ui/notifications_ui.module \notifications_ui_menu()
- 7 notifications_ui/notifications_ui.module \notifications_ui_menu()
Implementation of hook_menu()
File
- notifications_ui/
notifications_ui.module, line 26 - User Interface for subscriptions modules
Code
function notifications_ui_menu() {
$items['admin/messaging/notifications/subscriptions/ui'] = array(
'title' => 'User interface',
'description' => 'Enables site settings for user subscriptions.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'notifications_ui_settings_form',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'file' => 'notifications_ui.admin.inc',
);
// Add single subscription page
$items['user/%user/notifications/add'] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'Add subscription',
'page callback' => 'notifications_ui_page_user_add',
'page arguments' => array(
1,
),
'access callback' => 'notifications_ui_access_user_add',
'access arguments' => array(
1,
4,
),
'file' => 'notifications_ui.pages.inc',
'weight' => 100,
);
return $items;
}