function taxonomy_facets_menu in Taxonomy Facets 7.3
Same name and namespace in other branches
- 7.2 taxonomy_facets.module \taxonomy_facets_menu()
Implements hook_menu().
File
- ./
taxonomy_facets.module, line 17
Code
function taxonomy_facets_menu() {
$items = array();
// First argumet in the listing url, as specified in the admin form.
$first_arg = variable_get('taxonomy_facets_first_argument', 'items_list');
// The node listing page, where filters can be allied.
$items[$first_arg] = array(
'page arguments' => array(
1,
),
'page callback' => 'taxonomy_facets_print_landing_page',
'type' => MENU_CALLBACK,
'access arguments' => array(
'view taxo facets',
),
);
// Admin settings page.
$items['admin/config/search/tax_faceted_nav'] = array(
'title' => 'Taxo Faceted Navigation',
'description' => 'Taxo Faceted Navigation module configuration',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_facets_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'taxonomy_facets.inc',
'type' => MENU_NORMAL_ITEM,
);
// Add taxo faceted block page.
$items['admin/structure/block/add-taxofacet-block'] = array(
'title' => 'Add taxofacet block',
'description' => 'Add a new taxo faceted block.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'taxonomy_facets_add_block_form',
),
'access arguments' => array(
'administer blocks',
),
'type' => MENU_LOCAL_ACTION,
'file' => 'taxonomy_facets.inc',
);
return $items;
}