function asset_import_menu in Asset 5
Same name and namespace in other branches
- 5.2 contrib/asset_import/asset_import.module \asset_import_menu()
- 6 asset_import/asset_import.module \asset_import_menu()
- 6 contrib/asset_import/asset_import.module \asset_import_menu()
Implementation of hook_menu().
File
- asset_import/
asset_import.module, line 30
Code
function asset_import_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/content/asset_import',
'title' => t('asset import'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'asset_import_form',
),
'access' => user_access('import asset files'),
'type' => MENU_NORMAL_ITEM,
'description' => t('Import files from the filesystem.'),
);
$items[] = array(
'path' => 'admin/settings/asset_import',
'title' => t('asset import'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'asset_import_admin_settings',
),
'access' => user_access('administer site configuration'),
'type' => MENU_NORMAL_ITEM,
'description' => t('Change settings for the asset import module.'),
);
}
return $items;
}