You are here

function apachesolr_og_admin in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 contrib/apachesolr_og/apachesolr_og.module \apachesolr_og_admin()

Build a settings form.

1 string reference to 'apachesolr_og_admin'
apachesolr_og_menu in contrib/apachesolr_og/apachesolr_og.module
Implementation of hook_menu().

File

contrib/apachesolr_og/apachesolr_og.module, line 26
Integrates Organic Group info with Apache Solr search application.

Code

function apachesolr_og_admin() {
  $form = array();
  $form['apachesolr_og_groupnode'] = array(
    '#type' => 'radios',
    '#title' => t('Is the group node "included" within a group along with that group\'s posts'),
    '#description' => t('Should group nodes be indexed as belonging to their own group for the purposes of faceting?'),
    '#options' => array(
      0 => t('Not included'),
      1 => t('Included'),
    ),
    '#default_value' => variable_get('apachesolr_og_groupnode', 0),
  );
  $form = system_settings_form($form);
  $form['#submit'][] = 'apachesolr_og_reindex';
  return $form;
}