You are here

function views_plugin_style_atom_delete::query in Views Atom 7

Add anything to the query that we might need to.

Overrides views_plugin_style::query

File

./views_plugin_style_atom_delete.inc, line 57
Style plugin for an Atom feed using the Tombstone specification for entry deletion.

Class

views_plugin_style_atom_delete
@file Style plugin for an Atom feed using the Tombstone specification for entry deletion.

Code

function query() {
  parent::query();

  // @todo
  // I don't think this is a good way to do this.
  if (empty($this->view->query->fields['nid'])) {
    $this->view->query->fields['nid'] = array(
      'field' => 'nid',
      'table' => 'node',
      'alias' => 'nid',
    );
  }
}