You are here

function taxonomy_image_link_alter_menu in Taxonomy Image 5

Same name and namespace in other branches
  1. 6 contributed/taxonomy_image_link_alter/taxonomy_image_link_alter.module \taxonomy_image_link_alter_menu()

Implementation of hook_menu.

File

contributed/taxonomy_image_link_alter/taxonomy_image_link_alter.module, line 96
Change taxonomy links to show term images.

Code

function taxonomy_image_link_alter_menu($may_cache) {
  $items = array();
  if ($may_cache) {

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