function views_plugin_row_file_view::options_form in File Entity (fieldable files) 7
Same name and namespace in other branches
- 7.3 views/views_plugin_row_file_view.inc \views_plugin_row_file_view::options_form()
- 7.2 views/views_plugin_row_file_view.inc \views_plugin_row_file_view::options_form()
Provide a form for setting options.
Overrides views_plugin_row::options_form
File
- views/
views_plugin_row_file_view.inc, line 29 - Contains the file view row style plugin.
Class
- views_plugin_row_file_view
- Plugin which performs a file_view on the resulting object.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['view_mode'] = array(
'#type' => 'select',
'#options' => file_entity_view_mode_labels(),
'#title' => t('View mode'),
'#default_value' => $this->options['view_mode'],
);
$form['links'] = array(
'#type' => 'checkbox',
'#title' => t('Display links'),
'#default_value' => $this->options['links'],
);
}