You are here

function taxonomy_image_attach_menu in Taxonomy Image 6

Same name and namespace in other branches
  1. 5 contributed/taxonomy_image_attach/taxonomy_image_attach.module \taxonomy_image_attach_menu()

Implementation of hook_menu.

File

contributed/taxonomy_image_attach/taxonomy_image_attach.module, line 22
Add functionality to terms similar to the image_attach.module. Allow a term editor to choose from EXISTING images rather than upload new ones all the time. Currently this uses image.module handling of image nodes to index available images.

Code

function taxonomy_image_attach_menu() {
  $items = array();

  // Add a tab to the Admin Settings
  $items['admin/settings/taxonomy_image/image_attach'] = array(
    'title' => 'Image Attach',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'taxonomy_image_image_attach_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'description' => 'Configure Taxonomy_image Image_attach functionality.',
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  return $items;
}