You are here

function uc_roles_menu in Ubercart 7.3

Same name and namespace in other branches
  1. 5 uc_roles/uc_roles.module \uc_roles_menu()
  2. 6.2 uc_roles/uc_roles.module \uc_roles_menu()

Implements hook_menu().

File

uc_roles/uc_roles.module, line 75
Grants roles upon accepted payment of products.

Code

function uc_roles_menu() {
  $items = array();
  $items['admin/people/expiration'] = array(
    'title' => 'Role expiration',
    'description' => 'Edit and view role expirations set by Ubercart',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_roles_expiration',
    ),
    'access arguments' => array(
      'administer users',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'uc_roles.admin.inc',
  );
  $items['admin/people/expiration/delete/%user/%'] = array(
    'title' => 'Delete role expiration',
    'description' => 'Delete a specified role expiration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_roles_deletion_form',
      4,
      5,
    ),
    'access arguments' => array(
      'administer users',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'uc_roles.admin.inc',
  );
  return $items;
}