function apachesolr_enabled_facets_page in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr.module \apachesolr_enabled_facets_page()
- 6.3 apachesolr.module \apachesolr_enabled_facets_page()
Wrapper for facetapi settings forms.
1 string reference to 'apachesolr_enabled_facets_page'
- apachesolr_menu in ./
apachesolr.module - Implements hook_menu().
File
- ./
apachesolr.module, line 234 - Integration with the Apache Solr search application.
Code
function apachesolr_enabled_facets_page($realm_name, $environment = NULL) {
$page = array();
if (isset($environment['env_id'])) {
$env_id = $environment['env_id'];
}
else {
$env_id = apachesolr_default_environment();
}
$searcher = 'apachesolr@' . $env_id;
// Initializes output with information about which environment's setting we are
// editing, as it is otherwise not transparent to the end user.
$page['apachesolr_environment'] = array(
'#theme' => 'apachesolr_settings_title',
'#env_id' => $env_id,
);
$page['settings'] = drupal_get_form('facetapi_realm_settings_form', $searcher, $realm_name);
return $page;
}