You are here

public function metatag_handler_field_serialized::options_form in Metatag 7

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

Overrides views_handler_field::options_form

1 call to metatag_handler_field_serialized::options_form()
metatag_handler_field_serialized_list::options_form in views/metatag_handler_field_serialized_list.inc
Default options form provides the label widget that all fields should have.
1 method overrides metatag_handler_field_serialized::options_form()
metatag_handler_field_serialized_list::options_form in views/metatag_handler_field_serialized_list.inc
Default options form provides the label widget that all fields should have.

File

views/metatag_handler_field_serialized.inc, line 42

Class

metatag_handler_field_serialized

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['metatag'] = array(
    '#type' => 'fieldset',
    '#title' => 'Metatag',
    '#collapsible' => TRUE,
  );
  $form['metatag']['use_default'] = array(
    '#type' => 'checkbox',
    '#title' => 'Use default metatag value',
    '#description' => 'Display default value if no value has been defined on entity.',
    '#default_value' => $this->options['metatag']['use_default'],
  );
  $form['metatag']['replace_tokens'] = array(
    '#type' => 'checkbox',
    '#title' => 'Replace tokens',
    '#description' => 'Attempt to replace all tokens with their (entity) values. Note: Tokens in metatags will be replaced before Views tokens.',
    '#default_value' => $this->options['metatag']['replace_tokens'],
  );
}