function entityreference_view_widget_plugin_display::options_form in Entity Reference View Widget 7
Provide a form for setting options.
Overrides views_plugin_display::options_form
File
- views/
entityreference_view_widget_plugin_display.inc, line 34
Class
- entityreference_view_widget_plugin_display
- Provides the "Entityreference View Widget" display which configures the view for inclusion in the widget.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['hide_left'] = array(
'#type' => 'checkbox',
'#title' => t('Hide the selected items column'),
'#default_value' => $this
->get_option('hide_left'),
'#description' => t('Do not display selected items column, the column on the left.'),
);
}