function notifications_tags_menu in Notifications 7
Same name and namespace in other branches
- 5 notifications_tags/notifications_tags.module \notifications_tags_menu()
- 6.4 notifications_tags/notifications_tags.module \notifications_tags_menu()
- 6 notifications_tags/notifications_tags.module \notifications_tags_menu()
- 6.2 notifications_tags/notifications_tags.module \notifications_tags_menu()
- 6.3 notifications_tags/notifications_tags.module \notifications_tags_menu()
Implementation of hook_menu_()
File
- notifications_tags/
notifications_tags.module, line 10 - Subscriptions to taxonomy terms
Code
function notifications_tags_menu() {
$items['admin/config/messaging/subscriptions/tags'] = array(
'title' => 'Tags',
'description' => 'Options for taxonomy subscriptions',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'notifications_tags_admin_settings',
),
'access arguments' => array(
'administer notifications',
),
'type' => MENU_LOCAL_TASK,
'file' => 'notifications_tags.admin.inc',
);
$items['notifications_tags/autocomplete'] = array(
'title' => 'Autocomplete taxonomy',
'page callback' => 'notifications_tags_autocomplete',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
// Hidden user account tab, unless notifications_user enabled
$items['user/%user/notifications/taxonomy'] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'Tags',
'access callback' => 'notifications_tags_user_access',
'access arguments' => array(
1,
'taxonomy_term',
),
'page callback' => 'notifications_account_subscription_list_page',
'page arguments' => array(
'taxonomy_term',
1,
),
'weight' => 10,
);
return $items;
}