You are here

function brightcove_cck_handler_field_video_tags::options_form in Brightcove Video Connect 6

Same name and namespace in other branches
  1. 6.2 brightcove_cck/views/brightcove_cck_handler_field_video_tags.inc \brightcove_cck_handler_field_video_tags::options_form()

Provide formatter option.

Overrides content_handler_field_multiple::options_form

1 call to brightcove_cck_handler_field_video_tags::options_form()
brightcove_cck_handler_field_video_tags_multiple::options_form in brightcove_cck/views/brightcove_cck_handler_field_video_tags_multiple.inc
Provide 'group multiple values' option.
1 method overrides brightcove_cck_handler_field_video_tags::options_form()
brightcove_cck_handler_field_video_tags_multiple::options_form in brightcove_cck/views/brightcove_cck_handler_field_video_tags_multiple.inc
Provide 'group multiple values' option.

File

brightcove_cck/views/brightcove_cck_handler_field_video_tags.inc, line 56
The subclass adds basic field and formatter info, for field-specific subclasses to use if they need to.

Class

brightcove_cck_handler_field_video_tags
@file The subclass adds basic field and formatter info, for field-specific subclasses to use if they need to.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  // TODO: do we want the 'link to node' checkbox ?
  // That's usually formatters business...
  $field = $this->content_field;
  $options = $this->options;
  unset($form['format']);
  unset($form['label_type']);
  $form['label'] = array(
    '#type' => 'textfield',
    '#title' => t('Label'),
    '#default_value' => isset($this->options['label']) ? $this->options['label'] : '',
    '#description' => t('The label for this field that will be displayed to end users if the style requires it.'),
  );
  $time = time();
  $form['separator'] = array(
    '#type' => 'textfield',
    '#description' => t('Lists tags separated by a character (or a string) specified here.'),
    '#title' => t('Tag separator'),
    '#default_value' => isset($this->options['separator']) ? $this->options['separator'] : 'small',
  );
}