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

Provide a form for setting options.

Overrides views_plugin_row::options_form

File

core/modules/node/views/views_plugin_row_node_view.inc, line 45
Contains the node view row style plugin.

Class

views_plugin_row_node_view
Plugin which performs a node_view on the resulting object.

Code

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

  $options = $this->options_form_summary_options();
  $form['view_mode'] = array(
    '#type' => 'select',
    '#options' => $options,
    '#title' => t('Display mode'),
    '#default_value' => $this->options['view_mode'],
  );
  $form['title'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display title'),
    '#description' => t('The title will display as a link to each item.'),
    '#default_value' => $this->options['title'],
  );
  $form['links'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display links'),
    '#description' => t("e.g. 'Read more', 'Add comment', etc."),
    '#default_value' => $this->options['links'],
  );
  $form['comments'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display comments'),
    '#default_value' => $this->options['comments'],
  );
}