You are here

function taxonomy_image_menu in Taxonomy Image 5

Same name and namespace in other branches
  1. 6 taxonomy_image.module \taxonomy_image_menu()

Implementation of hook_menu.

File

./taxonomy_image.module, line 350
taxonomy_image.module Simple module for providing an association between taxonomy terms and images. Written by Jeremy Andrews <jeremy@kerneltrap.org>, May 2004.

Code

function taxonomy_image_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/content/taxonomy/taxonomy_image',
      'title' => t('Images'),
      'callback' => 'taxonomy_image_overview',
      'access' => user_access('administer taxonomy images'),
      'description' => t('An overview of taxonomy images'),
      'type' => MENU_LOCAL_TASK,
    );

    // Admin Settings
    $items[] = array(
      'path' => 'admin/settings/taxonomy_image',
      'title' => t('Taxonomy Image'),
      'callback' => 'taxonomy_image_admin_settings',
      'access' => user_access('administer site configuration'),
      'description' => t('Global configuration of taxonomy image functionality.'),
      'type' => MENU_NORMAL_ITEM,
    );
    $items[] = array(
      'path' => 'admin/settings/taxonomy_image/general',
      'title' => t('General'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'taxonomy_image_admin_form',
      ),
      'access' => user_access('administer site configuration'),
      'type' => MENU_DEFAULT_LOCAL_TASK,
      'weight' => -1,
    );
  }
  return $items;
}