function notifications_content_menu in Notifications 6
Same name and namespace in other branches
- 5 notifications_content/notifications_content.module \notifications_content_menu()
- 6.4 notifications_content/notifications_content.module \notifications_content_menu()
- 6.2 notifications_content/notifications_content.module \notifications_content_menu()
- 6.3 notifications_content/notifications_content.module \notifications_content_menu()
- 7 notifications_content/notifications_content.module \notifications_content_menu()
Implementation of hook_menu_()
File
- notifications_content/
notifications_content.module, line 16 - Subscriptions to content events
Code
function notifications_content_menu() {
$items['admin/messaging/notifications/content'] = array(
'title' => 'Content subscriptions',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'notifications_content_settings_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'notifications_content.pages.inc',
);
// User pages, will be disabled by default
$items['user/%user/notifications/thread'] = array(
'type' => MENU_LOCAL_TASK,
'access callback' => FALSE,
'access arguments' => FALSE,
'title' => 'Thread',
'page callback' => 'notifications_content_page_thread',
'page arguments' => array(
1,
),
'weight' => 10,
'file' => 'notifications_content.pages.inc',
);
$items['user/%user/notifications/nodetype'] = array(
'type' => MENU_LOCAL_TASK,
'access callback' => FALSE,
'title' => 'Content type',
'page callback' => 'notifications_content_page_nodetype',
'page arguments' => array(
1,
),
'weight' => 10,
'file' => 'notifications_content.pages.inc',
);
$items['user/%user/notifications/author'] = array(
'type' => MENU_LOCAL_TASK,
'access callback' => FALSE,
'title' => t('Author'),
'page callback' => 'notifications_content_page_author',
'pàge arguments' => array(
1,
),
'weight' => 10,
'file' => 'notifications_content.pages.inc',
);
return $items;
}