function hosting_field_handler_status::options_form in Hosting 7.3
Same name and namespace in other branches
- 7.4 includes/views/handlers/hosting_field_handler_status.inc \hosting_field_handler_status::options_form()
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- includes/
views/ handlers/ hosting_field_handler_status.inc, line 24
Class
- hosting_field_handler_status
- A base handler for status fields.
Code
function options_form(&$form, &$form_state) {
$form['status_mode'] = array(
'#type' => 'radios',
'#title' => t('Display mode'),
'#options' => array(
'text' => t('Text'),
'image' => t('Image'),
'text_image' => t('Text & Image'),
'class' => t('CSS class'),
),
'#default_value' => isset($this->options['status_mode']) ? $this->options['status_mode'] : 'text',
'#description' => t("Display mode of status values."),
);
parent::options_form($form, $form_state);
}