You are here

public function biblio_handler_field::options_form in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 views/biblio_handler_field.inc \biblio_handler_field::options_form()
  2. 6 views/biblio_handler_field.inc \biblio_handler_field::options_form()
  3. 7.2 views/biblio_handler_field.inc \biblio_handler_field::options_form()

Default options form provides the label widget that all fields should have.

Overrides views_handler_field::options_form

2 calls to biblio_handler_field::options_form()
biblio_handler_field_contributor::options_form in views/biblio_handler_field_contributor.inc
Default options form provides the label widget that all fields should have.
biblio_handler_field_keyword::options_form in views/biblio_handler_field_keyword.inc
Default options form provides the label widget that all fields should have.
2 methods override biblio_handler_field::options_form()
biblio_handler_field_contributor::options_form in views/biblio_handler_field_contributor.inc
Default options form provides the label widget that all fields should have.
biblio_handler_field_keyword::options_form in views/biblio_handler_field_keyword.inc
Default options form provides the label widget that all fields should have.

File

views/biblio_handler_field.inc, line 53

Class

biblio_handler_field

Code

public function options_form(&$form, &$form_state) {
  $form['biblio_label'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use label specific to biblio type'),
    '#description' => 'Check this option to use the type-specific field labels as defined in ' . l(t('biblio settings'), 'admin/config/content/biblio/fields/type'),
    '#default_value' => $this->options['biblio_label'],
  );
  parent::options_form($form, $form_state);
  $form['label'] += array(
    '#process' => array(
      'ctools_dependent_process',
    ),
    '#dependency' => array(
      'edit-options-biblio-label' => array(
        0,
      ),
    ),
  );
}