You are here

function photos_access_menu in Album Photos 7.3

Implements hook_menu().

File

photos_access/photos_access.module, line 6

Code

function photos_access_menu() {
  $items['privacy/pass/%/%node'] = array(
    'title' => 'Please enter password',
    'page callback' => 'photos_access_page',
    'page arguments' => array(
      3,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/media/photos/privacy'] = array(
    'title' => 'Privacy',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'photos_access_admin_settings',
    ),
    'access arguments' => array(
      'administer nodes',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['photos-access/user/autocomplete/multiple'] = array(
    'title' => 'Multiple users autocomplete',
    'page callback' => 'photos_access_multiple_users_autocomplete',
    'access arguments' => array(
      'access user profiles',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}