function currency_handler_field_currency::options_form in Currency 7
Same name and namespace in other branches
- 6 views/handlers/currency_handler_field_currency.inc \currency_handler_field_currency::options_form()
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- includes/
views/ handlers/ currency_handler_field_currency.inc, line 26 - Views field handler.
Class
- currency_handler_field_currency
- @file Views field handler.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['display_code_only'] = array(
'#title' => t('Display as currency code only'),
'#description' => t('Hides the descriptive currency name.'),
'#type' => 'checkbox',
'#default_value' => !empty($this->options['display_code_only']),
);
}