You are here

function notify_menu in Notify 7

Same name and namespace in other branches
  1. 5.2 notify.module \notify_menu()
  2. 5 notify.module \notify_menu()
  3. 6 notify.module \notify_menu()

Implements hook_menu().

File

./notify.module, line 148
Notify module sends e-mail digests of new content and comments.

Code

function notify_menu() {
  $items = array();
  $items['admin/config/people/notify'] = array(
    'title' => 'Notification settings',
    'description' => 'Adjust settings for new content notifications sent by e-mail.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'notify_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer notify',
    ),
    'file' => 'notify.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/people/notify/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );
  $items['admin/config/people/notify/queue'] = array(
    'title' => 'Queue',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'notify_admin_queue',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer notify queue',
    ),
    'file' => 'notify.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/config/people/notify/skip'] = array(
    'title' => 'Skip flags',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'notify_admin_skip',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer notify skip flags',
    ),
    'file' => 'notify.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $items['admin/config/people/notify/defaults'] = array(
    'title' => 'Defaults',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'notify_admin_defaults',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer notify',
    ),
    'file' => 'notify.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
  );
  $items['admin/config/people/notify/users'] = array(
    'title' => 'Users',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'notify_admin_users',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer notify',
    ),
    'file' => 'notify.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
  );
  $items['user/%user/notify'] = array(
    'title' => 'Notification settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'notify_user_settings_form',
      1,
    ),
    'access callback' => 'notify_user_access',
    'access arguments' => array(
      1,
    ),
    'file' => 'notify.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}