function apachesolr_index_page in Apache Solr Search 5
Same name and namespace in other branches
- 5.2 apachesolr.admin.inc \apachesolr_index_page()
- 6 apachesolr.admin.inc \apachesolr_index_page()
- 6.2 apachesolr.admin.inc \apachesolr_index_page()
1 string reference to 'apachesolr_index_page'
- apachesolr_menu in ./
apachesolr.module - Implementation of hook_menu().
File
- ./
apachesolr.module, line 181 - Integration with the Apache Solr search application.
Code
function apachesolr_index_page() {
// Gets information about the fields already in solr index.
include_once drupal_get_path('module', 'apachesolr') . '/Solr_Base_Query.php';
$fields = Solr_Base_Query::get_fields_in_index();
$rows = array();
foreach ($fields as $name => $field) {
$rows[] = array(
$name,
$field->type,
);
}
$output = '';
// Display the table of Field names and Field Index Types.
$output .= theme('table', array(
t('Field name'),
t('Field index type'),
), $rows);
// Display the Delete Index form.
$output .= drupal_get_form('apachesolr_delete_index_form');
return $output;
}