You are here

function gallery_assist_ui_menu in Gallery Assist 6

Implementation of hook_menu()

File

modules/gallery_assist_ui/gallery_assist_ui.module, line 30

Code

function gallery_assist_ui_menu() {
  $items = array();

  // Gallery as secundary tab from edit.
  $items['node/%node/edit/ga_sort'] = array(
    'title' => 'Sort images',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'gallery_assist_ui_sorting_items',
      1,
    ),
    'access callback' => 'gallery_assist_ui_sort_check_access',
    'access arguments' => array(
      3,
      1,
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  $items['gallery_assist/ga_sort/js'] = array(
    'title' => 'Gallery settings',
    'page callback' => 'gallery_assist_ui_sorting_items_js',
    'access callback' => user_access('access sort images tab'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
  );
  $items['node/%node/edit/ga_settings'] = array(
    'title' => 'Gallery settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'gallery_assist_ui_gallery_settings',
      1,
    ),
    'access callback' => 'gallery_assist_ui_check_access',
    'access arguments' => array(
      1,
      'edit',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 5,
  );
  $items['node/%node/edit/ga_items'] = array(
    'title' => 'Add & edit images',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'gallery_assist_ui_ga_items_form',
      1,
    ),
    'access callback' => 'gallery_assist_ui_check_access',
    'access arguments' => array(
      1,
      'edit',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  return $items;
}