function getlocations_fields_handler_field_data::options_form in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_fields/handlers/getlocations_fields_handler_field_data.inc \getlocations_fields_handler_field_data::options_form()
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- modules/
getlocations_fields/ handlers/ getlocations_fields_handler_field_data.inc, line 22 - getlocations_fields_handler_field_data.inc Definition of views_handler_field_serialized.
Class
- getlocations_fields_handler_field_data
- Field handler to show data of serialized fields.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$opts = getlocations_fields_data_keys();
$form['key'] = array(
'#type' => 'select',
'#title' => t('Which key should be displayed'),
'#default_value' => $this->options['key'],
'#options' => $opts,
);
}