function uc_importer_menu in Ubercart 5
Implementation of hook_menu().
File
- uc_importer/
uc_importer.module, line 43 - XML product importer and exporter.
Code
function uc_importer_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/store/products/export',
'access' => user_access('export'),
'title' => t('Export products'),
'callback' => 'uc_importer_export_page',
'type' => MENU_NORMAL_ITEM,
);
$items[] = array(
'path' => 'admin/store/products/import',
'access' => user_access('import'),
'title' => t('Import products'),
'callback' => 'uc_importer_import_page',
'type' => MENU_NORMAL_ITEM,
);
$items[] = array(
'path' => 'admin/store/settings/importer',
'access' => user_access('import'),
'title' => t('Importer settings'),
'description' => t('Configure the importer settings.'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'uc_importer_admin_settings',
),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}