function location_handler_field_location_province::options_form in Location 7.4
Same name and namespace in other branches
- 6.3 handlers/location_handler_field_location_province.inc \location_handler_field_location_province::options_form()
- 7.5 handlers/location_handler_field_location_province.inc \location_handler_field_location_province::options_form()
- 7.3 handlers/location_handler_field_location_province.inc \location_handler_field_location_province::options_form()
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- handlers/
location_handler_field_location_province.inc, line 23 - Province field handler.
Class
- location_handler_field_location_province
- @file Province field handler.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['style'] = array(
'#title' => t('Display style'),
'#type' => 'select',
'#options' => array(
'name' => t('Province name'),
'code' => t('Province code'),
),
'#default_value' => $this->options['style'],
);
}