You are here

function push_notifications_menu in Push Notifications 7

Implements of hook_menu().

File

./push_notifications.module, line 86
Push Notifications functionality.

Code

function push_notifications_menu() {
  $items = array();
  $items['admin/config/services/push_notifications'] = array(
    'type' => MENU_NORMAL_ITEM,
    'title' => 'Push Notifications',
    'access arguments' => array(
      'send push notifications',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'push_notifications_admin_overview_form',
    ),
    'description' => 'Push Notifications Settings.',
    'file' => 'push_notifications.admin.inc',
    'file path' => drupal_get_path('module', 'push_notifications') . '/includes',
  );
  $items['admin/config/services/push_notifications/overview'] = array(
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'title' => 'Overview',
    'weight' => -50,
    'access arguments' => array(
      'send push notifications',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'push_notifications_admin_overview_form',
    ),
    'description' => 'Push Notifications Settings.',
    'file' => 'push_notifications.admin.inc',
    'file path' => drupal_get_path('module', 'push_notifications') . '/includes',
  );
  $items['admin/config/services/push_notifications/configure'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Configuration',
    'access arguments' => array(
      'administer site configuration',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'push_notifications_admin_form',
    ),
    'description' => 'Push Notifications Settings.',
    'file' => 'push_notifications.admin.inc',
    'file path' => drupal_get_path('module', 'push_notifications') . '/includes',
  );
  $items['admin/config/services/push_notifications/message'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Send Push',
    'access arguments' => array(
      'send push notifications',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'push_notifications_mass_push_form',
    ),
    'description' => 'Send a Push Notification',
    'file' => 'push_notifications.admin.inc',
    'file path' => drupal_get_path('module', 'push_notifications') . '/includes',
  );
  return $items;
}