You are here

function taxonomy_image_attach_menu in Taxonomy Image 5

Same name and namespace in other branches
  1. 6 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($may_cache) {
  $items = array();
  if ($may_cache) {

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