You are here

function tvi_menu in Taxonomy Views Integrator 6

Same name and namespace in other branches
  1. 7 tvi.module \tvi_menu()

Implements hook_menu().

See also

http://api.drupal.org/api/function/hook_menu/6

File

./tvi.module, line 52
Enables use of views for taxonomy pages.

Code

function tvi_menu() {
  $items = array();
  $items['admin/content/taxonomy/tvi'] = array(
    'title' => 'TVI settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'tvi_settings_form',
    ),
    'access arguments' => array(
      'administer taxonomy',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'includes/tvi.admin.inc',
  );

  // Define a AHAH views display options callback.
  $items['tvi/js/display_options'] = array(
    'page callback' => 'tvi_display_options_ahah',
    'access arguments' => array(
      'administer taxonomy',
    ),
    'file' => 'includes/tvi.admin.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}