function location_handler_field_location_street::options_form in Location 7.5
Same name and namespace in other branches
- 6.3 handlers/location_handler_field_location_street.inc \location_handler_field_location_street::options_form()
- 7.3 handlers/location_handler_field_location_street.inc \location_handler_field_location_street::options_form()
- 7.4 handlers/location_handler_field_location_street.inc \location_handler_field_location_street::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_street.inc, line 23 - Province field handler.
Class
- location_handler_field_location_street
- @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(
'both' => t('Both street and additional'),
'street' => t('Street only'),
'additional' => t('Additional only'),
),
'#default_value' => $this->options['style'],
);
}