function notifications_content_menu in Notifications 7
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 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()
Implementation of hook_menu_()
File
- notifications_content/
notifications_content.module, line 13 - Subscriptions to content events
Code
function notifications_content_menu() {
$items['admin/config/messaging/subscriptions/content'] = array(
'title' => 'Content',
'description' => '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.admin.inc',
);
// User pages for each subscription type, will be disabled by default
foreach (notifications_content_notifications('subscription types') as $type => $info) {
if (notifications_subscription_type_enabled($type)) {
$items['user/%user/notifications/' . $type] = array(
'type' => MENU_LOCAL_TASK,
'access callback' => 'notifications_content_user_access',
'access arguments' => array(
1,
$type,
),
'title' => $info['title'],
'page callback' => 'notifications_account_subscription_list_page',
'page arguments' => array(
$type,
1,
),
'weight' => 10,
);
}
}
/*
$items['admin/messaging/notifications/events/configure'] = array(
'title' => 'Configure',
'type' => MENU_DEFAULT_LOCAL_TASK,
'access arguments' => array('administer site configuration'),
'file' => 'notifications.admin.inc',
);
$items['admin/messaging/notifications/events/test'] = array(
'title' => 'Test',
'description' => 'Test event templates.',
'page callback' => 'drupal_get_form',
'page arguments' => array('notifications_content_test_template_form'),
'type' => MENU_LOCAL_TASK,
'access arguments' => array('administer notifications'),
'file' => 'notifications_content.admin.inc',
);
*/
return $items;
}