function apachesolr_mlt_menu in Apache Solr Search 5
Implementation of hook_menu()
File
- contrib/
apachesolr_mlt/ apachesolr_mlt.module, line 6
Code
function apachesolr_mlt_menu($may_cache) {
$items = array();
if (!$may_cache) {
$items[] = array(
'path' => 'admin/settings/apachesolr_mlt',
'title' => t('Apache Solr More Like This'),
'description' => t('Configure content recommendation blocks using the ApacheSolr "More Like This" handler.'),
'callback' => 'apachesolr_mlt_settings',
'access' => user_access('administer search'),
);
$items[] = array(
'path' => 'admin/settings/apachesolr_mlt/configure_block',
'type' => MENU_CALLBACK,
'callback' => 'drupal_get_form',
'callback arguments' => array(
'apachesolr_mlt_block_form',
arg(4),
),
'access' => user_access('administer search'),
);
$items[] = array(
'path' => 'admin/settings/apachesolr_mlt/delete_block',
'type' => MENU_CALLBACK,
'callback' => 'drupal_get_form',
'callback arguments' => array(
'apachesolr_mlt_delete_block_form',
arg(4),
),
'access' => user_access('administer search'),
);
}
return $items;
}