1 views_handler_field.inc | views_handler_field_file_size::options_form(&$form, &$form_state) |
Default options form that provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- core/
modules/ views/ handlers/ views_handler_field.inc, line 1649 - @todo.
Class
- views_handler_field_file_size
- Render a numeric value as a size.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['file_size_display'] = array(
'#title' => t('File size display'),
'#type' => 'select',
'#options' => array(
'formatted' => t('Formatted (in KB or MB)'),
'bytes' => t('Raw bytes'),
),
);
}