You are here

function taxonomy_list_menu in Taxonomy List 5

Same name and namespace in other branches
  1. 5.2 taxonomy_list.module \taxonomy_list_menu()
  2. 6.2 taxonomy_list.module \taxonomy_list_menu()
  3. 6 taxonomy_list.module \taxonomy_list_menu()
  4. 7 taxonomy_list.module \taxonomy_list_menu()

Implementation of hook_menu().

File

./taxonomy_list.module, line 28
List the category specified in the URL

Code

function taxonomy_list_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/taxonomy_list',
      'title' => t('Taxonomy List'),
      'description' => t('Customize how Taxonomy List displays terms on vocabulary pages.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'taxonomy_list_admin_settings',
      ),
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
    );
  }
  else {
    $items[] = array(
      'path' => 'taxonomy/vocabulary',
      'title' => t('Terms List for !vids', array(
        '!vids' => arg(2),
      )),
      'callback' => 'taxonomy_list_show',
      'access' => user_access('access content'),
      'type' => MENU_CALLBACK,
    );
    drupal_add_css(drupal_get_path('module', 'taxonomy_list') . '/taxonomy_list.css');
  }
  return $items;
}