function facetapi_luceneapi_menu in Facet API 6
Implementation of hook_menu().
File
- contrib/
facetapi_luceneapi/ facetapi_luceneapi.module, line 14 - The Search Lucene API module's implementation of the the Facet API.
Code
function facetapi_luceneapi_menu() {
$items = array();
// Iterates over all searchable modules, adds menu items.
foreach (luceneapi_searchable_module_list() as $searcher => $name) {
$items['admin/settings/' . $searcher . '/facetapi'] = array(
'title' => 'Facets',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'facetapi_admin_settings_form',
$searcher,
),
'access arguments' => array(
'administer search',
),
'type' => MENU_LOCAL_TASK,
'file' => 'facetapi.admin.inc',
'file path' => drupal_get_path('module', 'facetapi'),
'weight' => 10,
);
}
return $items;
}