Same name in other branches
  1. 7.x-3.x quicktabs.module \quicktabs_menu()

Implements hook_menu().

Fichier

./quicktabs.module, line 47

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' => 'includes/admin.inc',
    );
    $items['admin/structure/quicktabs/list'] = array(
        'title' => 'List quicktabs',
        'type' => MENU_DEFAULT_LOCAL_TASK,
    );
    $items['admin/structure/quicktabs/styles'] = array(
        'title' => 'Styles',
        'page callback' => 'drupal_get_form',
        'page arguments' => array(
            'quicktabs_styles',
        ),
        'access arguments' => array(
            'administer quicktabs',
        ),
        'type' => MENU_LOCAL_TASK,
        'file' => 'includes/admin.inc',
    );
    $items['admin/structure/quicktabs/add'] = array(
        'title' => 'Add quicktab',
        'page callback' => 'drupal_get_form',
        'page arguments' => array(
            'quicktabs_form',
            'add',
        ),
        'access arguments' => array(
            'administer quicktabs',
        ),
        'type' => MENU_LOCAL_ACTION,
        'file' => 'includes/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' => 'includes/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' => 'includes/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' => 'includes/admin.inc',
    );
    $items['admin/build/quicktabs/manage/%quicktabs/export'] = array(
        'title' => 'Export',
        'page callback' => 'drupal_get_form',
        'page arguments' => array(
            'quicktabs_export_form',
            3,
        ),
        'access arguments' => array(
            'administer quicktabs',
        ),
        'type' => MENU_LOCAL_TASK,
        'file' => 'includes/admin.inc',
    );
    $items['quicktabs/ajax'] = array(
        'page callback' => 'quicktabs_ajax',
        'access callback' => 'user_access',
        'access arguments' => array(
            'access content',
        ),
        'type' => MENU_CALLBACK,
    );
    return $items;
}