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

asset_import/asset_import.module, line 32

Code

function asset_import_menu() {
  $items = array();
  $items['admin/content/asset_import'] = array(
    'title' => t('asset import'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'asset_import_form',
    ),
    'access arguments' => array(
      'import asset files',
    ),
    'type' => MENU_NORMAL_ITEM,
    'description' => t('Import files from the filesystem.'),
    'file' => 'inc/asset_import.admin.inc',
  );
  $items['admin/settings/asset_import'] = array(
    'title' => t('asset import'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'asset_import_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'description' => t('Change settings for the asset import module.'),
    'file' => 'inc/asset_import.admin.inc',
  );
  return $items;
}