1 views_handler_field_file_extension.inc | public views_handler_field_file_extension::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/ file/ views/ views_handler_field_file_extension.inc, line 18 - Definition of views_handler_field_file_extension.
Class
- views_handler_field_file_extension
- Returns a pure file extension of the file, for example 'module'.
Code
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['extension_detect_tar'] = array(
'#type' => 'checkbox',
'#title' => t('Detect if tar is part of the extension'),
'#description' => t("See if the previous extension is '.tar' and if so, add that, so we see 'tar.gz' or 'tar.bz2' instead of just 'gz'."),
'#default_value' => $this->options['extension_detect_tar'],
);
}