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

Provide link to file option

Overrides views_handler_field_file::options_form

File

core/modules/file/views/views_handler_field_file_filemime.inc, line 19
Definition of views_handler_field_file_filemime.

Class

views_handler_field_file_filemime
Field handler to add rendering MIME type images as an option on the filemime field.

Code

function options_form(&$form, &$form_state) {
  $form['filemime_image'] = array(
    '#title' => t('Display an icon representing the file type, instead of the MIME text (such as "image/jpeg")'),
    '#type' => 'checkbox',
    '#default_value' => !empty($this->options['filemime_image']),
  );
  parent::options_form($form, $form_state);
}