You are here

function taxonomy_image_menu in Taxonomy Image 6

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

Implementation of hook_menu.

File

./taxonomy_image.module, line 376
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() {
  $items = array();
  $items['admin/content/taxonomy/taxonomy_image'] = array(
    'title' => 'Images',
    'page callback' => 'taxonomy_image_overview',
    'access arguments' => array(
      'administer taxonomy images',
    ),
    'description' => 'An overview of taxonomy images',
    'type' => MENU_LOCAL_TASK,
    'file' => 'taxonomy_image.admin.inc',
  );

  // Admin Settings
  $items['admin/settings/taxonomy_image'] = array(
    'title' => 'Taxonomy Image',
    'page callback' => 'taxonomy_image_admin_settings',
    'access arguments' => array(
      'administer site configuration',
    ),
    'description' => 'Configure Taxonomy_image functionality.',
    'type' => MENU_NORMAL_ITEM,
    'file' => 'taxonomy_image.admin.inc',
  );
  $items['admin/settings/taxonomy_image/general'] = array(
    'title' => 'General',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'taxonomy_image_admin_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'description' => 'Configure Taxonomy_image functionality.',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -1,
    'file' => 'taxonomy_image.admin.inc',
  );
  return $items;
}