1 views_handler_field_file_type.inc views_handler_field_file_type::options_form(&$form, &$form_state)

Provide machine_name option for to file type display.

Overrides views_handler_field_file::options_form

File

core/modules/file/views/views_handler_field_file_type.inc, line 22
Definition of views_handler_field_file_type.

Class

views_handler_field_file_type
Field handler to translate a file type into its readable form.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  $form['machine_name'] = array(
    '#title' => t('Output machine name'),
    '#description' => t('Display field as the file type machine name.'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['machine_name']),
    '#fieldset' => 'more',
  );
}