You are here

function subscriptions_mail_menu in Subscriptions 2.0.x

Same name and namespace in other branches
  1. 6 subscriptions_mail.module \subscriptions_mail_menu()
  2. 7 subscriptions_mail.module \subscriptions_mail_menu()

Implements hook_menu().

Registers a callback to purge the queue.

Return value

array

File

subscriptions_mail/subscriptions_mail.module, line 15
Subscriptions module mail gateway.

Code

function subscriptions_mail_menu() {
  $items[SUBSCRIPTIONS_CONFIG_PATH . '/purge-queue'] = array(
    'file' => 'subscriptions_mail.admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_subscriptions_mail_purge_queue_form',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}