You are here

public function TaxonomyDisplayAssociatedDisplayHandlerCore::formFieldset in Taxonomy display 7

Build our form for the fieldset.

Overrides TaxonomyDisplayHandlerForm::formFieldset

See also

TaxonomyDisplayHandlerForm::formFieldset()

File

handlers/associated/core.inc, line 43

Class

TaxonomyDisplayAssociatedDisplayHandlerCore
Add a display handler that will use the Drupal core method of display.

Code

public function formFieldset(&$form, &$values, $options = NULL) {
  $form['#description'] = t('The core Drupal functionality will be used to display the term\'s associated content.');
  $form['associated_per_page'] = array(
    '#default_value' => isset($options['associated_per_page']) ? $options['associated_per_page'] : variable_get('default_nodes_main', 10),
    '#description' => t('Enter 0 to display all associated content for the taxonomy term.'),
    '#maxlength' => 7,
    '#required' => TRUE,
    '#size' => 8,
    '#title' => t('Number of associated content entities per page'),
    '#type' => 'textfield',
  );
  $form['empty_text'] = array(
    '#default_value' => isset($options['empty_text']) ? $options['empty_text'] : 'There is currently no content classified with this term.',
    '#description' => t('Text displayed if there is no associated content, set to blank if no empty text should be displayed.'),
    '#title' => t('No associated content text'),
    '#type' => 'textfield',
  );
}