You are here

function patron_menu in Library 6

Same name and namespace in other branches
  1. 5.2 patron/patron.module \patron_menu()

Implementation of hook_menu()

File

patron/patron.module, line 402

Code

function patron_menu() {
  $items = array();
  $items['patrons/autocomplete'] = array(
    'title' => t('Patron Autocomplete'),
    'page callback' => 'patron_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['patrons'] = array(
    'title' => 'Patrons',
    'page callback' => 'patron_list_patrons',
    'access arguments' => array(
      'view patron content',
    ),
    'file' => 'patron.pages.inc',
  );
  $items['patrons/email'] = array(
    'title' => 'Send Email',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'patron_email_form',
    ),
    'access arguments' => array(
      'edit any patron content',
    ),
    'file' => 'patron.pages.inc',
  );
  $items['admin/settings/library/patrons'] = array(
    'title' => 'Patron Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'patron_admin_settings',
    ),
    'access arguments' => array(
      'administer patrons',
    ),
  );
  $items['patrons/js/email'] = array(
    'page callback' => 'patron_email_autocomplete',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'access content',
    ),
  );
  return $items;
}