You are here

function panels_export_menu in Panels 5.2

Same name and namespace in other branches
  1. 6.2 panels_export/panels_export.module \panels_export_menu()

Implementation of hook_menu().

File

panels_export/panels_export.module, line 14
panels_export.module

Code

function panels_export_menu($may_cache) {
  if ($may_cache) {
    $items = array();
    $items[] = array(
      'path' => 'admin/panels/export',
      'title' => t('Export panels'),
      'access' => user_access('use panels exporter'),
      'callback' => 'panels_export_export',
      'description' => t('Export panels in bulk.'),
    );
    $items[] = array(
      'path' => 'admin/panels/export/results',
      'access' => user_access('use panels exporter'),
      'callback' => 'panels_export_export',
      'type' => MENU_CALLBACK,
    );
    return $items;
  }
}