function comment_notify_menu in Comment Notify 7
Same name and namespace in other branches
- 5.2 comment_notify.module \comment_notify_menu()
- 5 comment_notify.module \comment_notify_menu()
- 6 comment_notify.module \comment_notify_menu()
Implements hook_menu().
File
- ./
comment_notify.module, line 173 - This module provides comment follow-up e-mail notification for anonymous and registered users.
Code
function comment_notify_menu() {
$items['admin/config/people/comment_notify'] = array(
'title' => 'Comment Notify',
'description' => 'Configure settings for e-mails about new comments.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'comment_notify_settings',
),
'access arguments' => array(
'administer comment notify',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/config/people/comment_notify/settings'] = array(
'title' => 'Settings',
'description' => 'Configure settings for e-mails about new comments.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'comment_notify_settings',
),
'access arguments' => array(
'administer comment notify',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/people/comment_notify/unsubscribe'] = array(
'title' => 'Unsubscribe',
'description' => 'Unsubscribe an email from all notifications.',
'weight' => 2,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'comment_notify_unsubscribe',
),
'access arguments' => array(
'administer comment notify',
),
'type' => MENU_LOCAL_TASK,
);
$items['comment_notify/disable/%'] = array(
'title' => 'Disable comment notification',
'page callback' => 'comment_notify_disable_page',
'page arguments' => array(
2,
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
return $items;
}