1. create a normal view with shows node content and select display format as show content instead of fields and then in the settings form you can see view mode option ,display links as per latest head. There should be Display comments check box here. it doesn't show no matter what, because of wrong access check in code.

Below is the code in the plugin file: modules/node/

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('View mode'),
      '#default_value' => $this->options['view_mode'],
    $form['links'] = array(
      '#type' => 'checkbox',
      '#title' => t('Display links'),
      '#default_value' => $this->options['links'],
    $form['comments'] = array(
      '#type' => 'checkbox',
      '#title' => t('Display comments'),
      '#default_value' => $this->options['comments'],
      '#access' => module_exists('comments'),

The last element has #access check for comments module, which actually should be "comment".

Members fund testing for the Drupal project. Drupal Association Learn more


sumanthkumarc created an issue. See original summary.

sumanthkumarc’s picture

Status: Active » Needs review
546 bytes

Adding patch.

sumanthkumarc’s picture

Oops, found another place with the same machine name error :( adding that too. This is final patch with changes in both places.

Algarte’s picture

18.28 KB
20.57 KB

I tested patch #3 and it worked fine. See attachment below with evidences.

Before :

After :

Algarte’s picture

Status: Needs review » Reviewed & tested by the community
RenatoG’s picture

Assigned: sumanthkumarc » RenatoG
Issue summary: View changes
Issue tags: +ciandt-contrib
115.29 KB
122.46 KB

Hi people.

I applied the patch #3 and Works good for me too.





RenatoG’s picture

Status: Reviewed & tested by the community » Fixed


Good catch. Thank you very much for contributions @algarte and @sumanthkumarc.

Commited in dev branch.

Good Work.


Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

DamienMcKenna’s picture