Skip to content

Instantly share code, notes, and snippets.

@rosiel
Last active December 26, 2015 22:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rosiel/1e5ad04719400774107f to your computer and use it in GitHub Desktop.
Save rosiel/1e5ad04719400774107f to your computer and use it in GitHub Desktop.
excerpt of a .module file to display islandora solr advanced search at [host]/advanced-search.
function custom_solr_config_menu() {
return array(
'advanced-search' => array(
'title' => t('Advanced search'),
'page callback' => 'custom_solr_config_advanced_search',
'access callback' => TRUE,
'type' => MENU_NORMAL_ITEM,
),
);
}
function custom_solr_config_advanced_search() {
return module_invoke('islandora_solr', 'block_view', 'advanced');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment