You are here

function quicktabs_menu in Quick Tabs 7.3

Same name and namespace in other branches
  1. 5 quicktabs.module \quicktabs_menu()
  2. 6.3 quicktabs.module \quicktabs_menu()
  3. 6 quicktabs.module \quicktabs_menu()
  4. 6.2 quicktabs.module \quicktabs_menu()
  5. 7.2 quicktabs.module \quicktabs_menu()

Implements hook_menu().

File

./quicktabs.module, line 22

Code

function quicktabs_menu() {
  $items['admin/structure/quicktabs'] = array(
    'title' => 'Quicktabs',
    'description' => 'Create blocks of tabbed content.',
    'page callback' => 'quicktabs_list',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer quicktabs',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'quicktabs.admin.inc',
  );
  $items['admin/structure/quicktabs/list'] = array(
    'title' => 'List quicktabs',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/structure/quicktabs/add'] = array(
    'title' => 'Add Quicktabs Instance',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'quicktabs_form',
      'add',
    ),
    'access arguments' => array(
      'administer quicktabs',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'quicktabs.admin.inc',
  );
  $items['admin/structure/quicktabs/manage/%quicktabs'] = array(
    'title' => 'Edit quicktab',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'quicktabs_form',
      'edit',
      4,
    ),
    'access arguments' => array(
      'administer quicktabs',
    ),
    'file' => 'quicktabs.admin.inc',
  );
  $items['admin/structure/quicktabs/manage/%quicktabs/edit'] = array(
    'title' => 'Edit quicktab',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'context' => MENU_CONTEXT_INLINE,
  );
  $items['admin/structure/quicktabs/manage/%quicktabs/delete'] = array(
    'title' => 'Delete quicktab',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'quicktabs_block_delete',
      4,
    ),
    'access arguments' => array(
      'administer quicktabs',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'quicktabs.admin.inc',
  );
  $items['admin/structure/quicktabs/manage/%quicktabs/clone'] = array(
    'title' => 'Clone quicktab',
    'page callback' => 'quicktabs_clone',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'administer quicktabs',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'quicktabs.admin.inc',
  );
  $items['admin/structure/quicktabs/manage/%quicktabs/export'] = array(
    'title' => 'Export',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'quicktabs_export_form',
      4,
    ),
    'access arguments' => array(
      'administer quicktabs',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'quicktabs.admin.inc',
  );
  $items['quicktabs/ajax'] = array(
    'page callback' => 'quicktabs_ajax',
    'access callback' => 'user_access',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}