You are here

function comment_notify_menu in Comment Notify 6

Same name and namespace in other branches
  1. 5.2 comment_notify.module \comment_notify_menu()
  2. 5 comment_notify.module \comment_notify_menu()
  3. 7 comment_notify.module \comment_notify_menu()

Implementation of hook_menu().

File

./comment_notify.module, line 158
This module provides comment follow-up e-mail notification for anonymous and registered users.

Code

function comment_notify_menu() {
  $items['admin/settings/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/settings/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/settings/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;
}