You are here

function asset_import_menu in Asset 6

Same name in this branch
  1. 6 asset_import/asset_import.module \asset_import_menu()
  2. 6 contrib/asset_import/asset_import.module \asset_import_menu()
Same name and namespace in other branches
  1. 5.2 contrib/asset_import/asset_import.module \asset_import_menu()
  2. 5 asset_import/asset_import.module \asset_import_menu()

Implementation of hook_menu().

File

contrib/asset_import/asset_import.module, line 31

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 images'),
      'type' => MENU_NORMAL_ITEM,
      'description' => t('Import images 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('import asset images'),
      'type' => MENU_NORMAL_ITEM,
      'description' => t('Change settings for the Asset import module.'),
    );
  }
  return $items;
}