Commit 69e26ce0 authored by dawehner's avatar dawehner Committed by tim.plunkett

Issue #1794538 by dawehner: Add a node_revision.status field in order to be...

Issue #1794538 by dawehner: Add a node_revision.status field in order to be able to fix the CTools test.
parent bf8e8219
......@@ -65,7 +65,7 @@ class NodeRevision extends WizardPluginBase {
protected $filters = array(
'status' => array(
'value' => TRUE,
'table' => 'node',
'table' => 'node_revision',
'field' => 'status'
)
);
......
......@@ -520,6 +520,28 @@ function node_views_data() {
),
);
// published status
$data['node_revision']['status'] = array(
'title' => t('Published'),
'help' => t('Whether or not the content is published.'),
'field' => array(
'id' => 'boolean',
'click sortable' => TRUE,
'output formats' => array(
'published-notpublished' => array(t('Published'), t('Not published')),
),
),
'filter' => array(
'id' => 'boolean',
'label' => t('Published'),
'type' => 'yes-no',
'use_equal' => TRUE, // Use status = 1 instead of status <> 0 in WHERE statment
),
'sort' => array(
'id' => 'standard',
),
);
// title
$data['node_revision']['title'] = array(
'title' => t('Title'), // The item it appears as on the UI,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment