function panels_mini_menu_items in Panels 5.2
1 call to panels_mini_menu_items()
- panels_mini_menu in panels_mini/
panels_mini.module - Implementation of hook_menu().
File
- panels_mini/
panels_mini.module, line 108 - panels_mini.module
Code
function panels_mini_menu_items(&$items, $base, $panel_mini) {
$access = user_access('administer mini panels');
if ($access) {
$items[] = array(
'path' => $base,
'title' => t('Preview'),
'access' => $access,
'callback' => 'panels_mini_preview_panel',
'callback arguments' => array(
$panel_mini,
),
'weight' => -10,
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => $base . '/preview',
'title' => t('Preview'),
'access' => $access,
'callback' => 'panels_mini_preview_panel',
'callback arguments' => array(
$panel_mini,
),
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items[] = array(
'path' => $base . '/edit/layout',
'title' => t('Layout'),
'access' => $access,
'callback' => 'panels_mini_edit_layout',
'callback arguments' => array(
$panel_mini,
),
'weight' => -9,
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => $base . '/edit/general',
'title' => t('Settings'),
'access' => $access,
'callback' => 'panels_mini_edit',
'callback arguments' => array(
$panel_mini,
),
'weight' => -5,
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => $base . '/edit/settings',
'title' => t('Layout settings'),
'access' => $access,
'callback' => 'panels_mini_edit_layout_settings',
'callback arguments' => array(
$panel_mini,
),
'weight' => -3,
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => $base . '/edit/context',
'title' => t('Context'),
'access' => $access,
'callback' => 'panels_mini_edit_context',
'callback arguments' => array(
$panel_mini,
),
'weight' => -2,
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => $base . '/edit/content',
'title' => t('Content'),
'access' => $access,
'callback' => 'panels_mini_edit_content',
'callback arguments' => array(
$panel_mini,
),
'weight' => -1,
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => $base . '/export',
'title' => t('Export'),
'access' => $access,
'callback' => 'drupal_get_form',
'callback arguments' => array(
'panels_mini_edit_export',
$panel_mini,
),
'weight' => 0,
'type' => MENU_LOCAL_TASK,
);
$items[] = array(
'path' => $base . '/delete',
'title' => t('Delete mini panel'),
'access' => user_access('create mini panels'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'panels_mini_delete_confirm',
$panel_mini,
),
'type' => MENU_CALLBACK,
);
}
}