function uc_recurring_subscription_menu in UC Recurring Payments and Subscriptions 6.2
Same name and namespace in other branches
- 7.2 modules/uc_recurring_subscription/uc_recurring_subscription.module \uc_recurring_subscription_menu()
Implementation of hook_menu().
File
- modules/
uc_recurring_subscription/ uc_recurring_subscription.module, line 39 - Manage subscription/memberships.
Code
function uc_recurring_subscription_menu() {
$items = array();
$items['admin/store/subscriptions'] = array(
'title' => 'Subscription Manager',
'description' => 'Manage recurring subscription products.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_recurring_subscription_overview',
),
'access arguments' => array(
'manage subscriptions',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'uc_recurring_subscription.admin.inc',
);
$items['admin/store/subscriptions/overview'] = array(
'title' => 'Overview',
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/store/subscriptions/create'] = array(
'title' => 'Create Subscription',
'description' => '.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_recurring_subscription_product_form',
),
'access arguments' => array(
'manage subscriptions',
),
'type' => MENU_LOCAL_TASK,
'file' => 'uc_recurring_subscription.admin.inc',
);
$items['admin/store/subscriptions/%/edit'] = array(
'title' => 'Edit Subscription',
'description' => '.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_recurring_subscription_product_form',
3,
),
'access arguments' => array(
'manage subscriptions',
),
'type' => MENU_CALLBACK,
'file' => 'uc_recurring_subscription.admin.inc',
);
$items['node/%/edit/subscription'] = array(
'title' => 'Subscription',
'description' => '.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_recurring_subscription_product_form',
1,
),
'access callback' => 'uc_product_edit_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
'file' => 'uc_recurring_subscription.admin.inc',
);
$items['admin/store/subscriptions/subscribers'] = array(
'title' => 'Manage Subscribers',
'description' => '.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_recurring_subscription_subscriber_list',
),
'access arguments' => array(
'manage subscriptions',
),
'type' => MENU_LOCAL_TASK,
'file' => 'uc_recurring_subscription.admin.inc',
);
$items['admin/store/subscriptions/settings'] = array(
'title' => 'Subscription Settings',
'description' => '.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_recurring_subscription_settings_form',
),
'access arguments' => array(
'manage subscriptions',
),
'type' => MENU_LOCAL_TASK,
'file' => 'uc_recurring_subscription.admin.inc',
);
$items['subscriptions/ahah/%'] = array(
'page callback' => 'uc_recurring_subscription_ahah',
'page arguments' => array(
2,
),
'access arguments' => array(
'manage subscriptions',
),
'type' => MENU_CALLBACK,
'file' => 'uc_recurring_subscription.admin.inc',
);
// override the ability to delete the subscription attribute
$items['admin/store/attributes/' . variable_get('uc_recurring_subscription_attribute', '') . '/delete'] = array(
'title' => 'Delete operation not Availabe',
'page callback' => 'uc_recurring_subscription_attribute_delete',
'access arguments' => array(
'administer attributes',
),
'type' => MENU_CALLBACK,
);
return $items;
}