You are here

function qtip_menu in qTip (Stylish jQuery Tooltips) 7.2

Same name and namespace in other branches
  1. 6.2 qtip.module \qtip_menu()
  2. 6 qtip.module \qtip_menu()
  3. 7 qtip.module \qtip_menu()

Implements hook_menu().

File

./qtip.module, line 126

Code

function qtip_menu() {
  $items = array();
  $items['admin/config/user-interface/qtip'] = array(
    'title' => 'qTip',
    'description' => 'Configure qTip tooltips for use on the site.',
    'type' => MENU_NORMAL_ITEM,
    'page callback' => 'qtip_list',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer qtip',
    ),
    'file' => 'includes/forms/qtip.list.inc',
  );
  $items['admin/config/user-interface/qtip/list'] = array(
    'title' => t('List'),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );
  $items['admin/config/user-interface/qtip/list/add'] = array(
    'title' => 'Add qTip instance',
    'type' => MENU_LOCAL_ACTION,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'qtip_configure_instance_form',
    ),
    'access arguments' => array(
      'administer qtip',
    ),
    'file' => 'includes/forms/qtip.admin.inc',
  );
  $items['admin/config/user-interface/qtip/manage/%qtip'] = array(
    'title' => 'callback',
    'title callback' => 'qtip_title_callback',
    'title arguments' => array(
      5,
    ),
    'type' => MENU_NORMAL_ITEM,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'qtip_configure_instance_form',
      5,
    ),
    'access arguments' => array(
      'administer qtip',
    ),
    'file' => 'includes/forms/qtip.admin.inc',
  );
  if (module_exists('ctools')) {
    $items['admin/config/user-interface/qtip/actions/%qtip/export'] = array(
      'title' => 'callback',
      'title callback' => 'qtip_title_callback',
      'title arguments' => array(
        5,
        6,
      ),
      'type' => MENU_NORMAL_ITEM,
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'qtip_export_form',
        5,
      ),
      'access arguments' => array(
        'administer qtip',
      ),
      'file' => 'includes/forms/qtip.admin.inc',
    );
    $items['admin/config/user-interface/qtip/actions/%qtip/clone'] = array(
      'title' => 'callback',
      'title callback' => 'qtip_title_callback',
      'title arguments' => array(
        5,
        6,
      ),
      'type' => MENU_NORMAL_ITEM,
      'page callback' => 'qtip_clone',
      'page arguments' => array(
        5,
      ),
      'access arguments' => array(
        'administer qtip',
      ),
      'file' => 'includes/forms/qtip.admin.inc',
    );
  }
  $items['admin/config/user-interface/qtip/actions/%qtip/delete'] = array(
    'type' => MENU_NORMAL_ITEM,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'qtip_delete_instance',
      5,
    ),
    'access arguments' => array(
      'administer qtip',
    ),
    'file' => 'includes/forms/qtip.admin.inc',
  );
  $items['admin/config/user-interface/qtip/actions/%qtip/revert'] = array(
    'type' => MENU_NORMAL_ITEM,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'qtip_revert_instance',
      5,
    ),
    'access arguments' => array(
      'administer qtip',
    ),
    'file' => 'includes/forms/qtip.admin.inc',
  );
  $items['admin/config/user-interface/qtip/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'qtip_settings_form',
    ),
    'access arguments' => array(
      'administer qtip',
    ),
    'file' => 'includes/forms/qtip.settings.inc',
  );
  $items['admin/config/user-interface/qtip/settings/core'] = array(
    'title' => 'Core',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
  );
  return $items;
}