public function views_handler_field_file_extension::options_form in Views (for Drupal 7) 7.3
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- modules/
system/ views_handler_field_file_extension.inc, line 27 - 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'],
);
}