You are here

public function CurrentSearchGroup::settingsForm in Facet API 7

Same name and namespace in other branches
  1. 6.3 contrib/current_search/plugins/current_search/item_group.inc \CurrentSearchGroup::settingsForm()
  2. 7.2 contrib/current_search/plugins/current_search/item_group.inc \CurrentSearchGroup::settingsForm()

Implements CurrentSearchItem::settingsForm().

Overrides CurrentSearchItem::settingsForm

File

contrib/current_search/plugins/current_search/item_group.inc, line 92
The group current search item plugin class.

Class

CurrentSearchGroup
Current search item plugin that displays the active facet items in a group.

Code

public function settingsForm(&$form, &$form_state) {
  $form['field_pattern'] = array(
    '#type' => 'textfield',
    '#title' => t('Field pattern'),
    '#default_value' => $this->settings['field_pattern'],
    '#maxlength' => 255,
    '#description' => t('The pattern of the field label preceeding the links. Token replacement patterns are allowed.'),
  );
  $form['nofollow'] = array(
    '#type' => 'checkbox',
    '#title' => t('Prevent crawlers from following active item links'),
    '#default_value' => $this->settings['nofollow'],
    '#description' => t('Add the <code>rel="nofollow"</code> attribute to active item links to maximize SEO by preventing crawlers from indexing duplicate content and getting stuck in loops.'),
  );

  // Adds token tree.
  $form['tokens'] = $this
    ->getTokenTree(array(
    'facetapi_facet',
  ));
}