You are here

function cloud_zoom_menu in Cloud Zoom 6

Implementation of hook_menu().

File

./cloud_zoom.module, line 31
This module integrates the Cloud Zoom JQuery library from: http://www.professorcloud.com/mainsite/cloud-zoom.htm

Code

function cloud_zoom_menu() {
  $items = array();
  $items['admin/settings/cloudzoom'] = array(
    'title' => 'Cloud Zoom',
    'description' => 'Configure the Cloud Zoom display features',
    'page callback' => 'cloud_zoom_admin_overview',
    'file' => 'cloud_zoom.admin.inc',
    'access arguments' => array(
      'configure cloud zoom field display',
    ),
  );
  $items['admin/settings/cloudzoom/overview'] = array(
    'title' => 'Overview',
    'access arguments' => array(
      'configure cloud zoom field display',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $base = array(
    'title callback' => 'cloud_zoom_admin_preset_title',
    'access arguments' => array(
      'configure cloud zoom field display',
    ),
    'page callback' => 'drupal_get_form',
    'file' => 'cloud_zoom.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/cloudzoom/add'] = array(
    'title' => 'Add',
    'title callback' => NULL,
    'page arguments' => array(
      'cloud_zoom_admin_preset_edit_form',
    ),
    'type' => MENU_LOCAL_TASK,
  ) + $base;
  $items['admin/settings/cloudzoom/%cloud_zoom_preset_name/edit'] = array(
    'title arguments' => array(
      3,
      'Edit',
    ),
    'page arguments' => array(
      'cloud_zoom_admin_preset_edit_form',
      3,
    ),
  ) + $base;
  $items['admin/settings/cloudzoom/%cloud_zoom_preset_name/delete'] = array(
    'title arguments' => array(
      3,
      'Delete',
    ),
    'page arguments' => array(
      'cloud_zoom_admin_preset_delete_confirm',
      3,
    ),
  ) + $base;
  $items['admin/settings/cloudzoom/%cloud_zoom_preset_name/revert'] = array(
    'title arguments' => array(
      3,
      'Revert',
    ),
    'page arguments' => array(
      'cloud_zoom_admin_preset_revert_confirm',
      3,
    ),
  ) + $base;
  return $items;
}