You are here

function quail_api_handler_field_markup::options_form in Quail API 7

Same name and namespace in other branches
  1. 8 includes/quail_api_handler_field_markup.inc \quail_api_handler_field_markup::options_form()

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

Overrides views_handler_field::options_form

File

includes/quail_api_handler_field_markup.inc, line 24
Provides field markup handler for views integration for the quail api.

Class

quail_api_handler_field_markup
A handler for the quail_api_node problem "element" field.

Code

function options_form(&$form, &$form_state) {
  $filter_formats = filter_formats();
  $formatters = array();
  foreach ((array) $filter_formats as $filter_format => $filter_format_settings) {
    $formatters[$filter_format] = $filter_format_settings->name;
  }
  $form['formatter'] = array(
    '#type' => 'select',
    '#title' => t("Formatter"),
    '#options' => $formatters,
    '#default_value' => $this->options['formatter'],
  );
  parent::options_form($form, $form_state);
}