views_handler_filter_node_status.inc in Views (for Drupal 7) 6.3
Same filename and directory in other branches
File
modules/node/views_handler_filter_node_status.incView source
<?php
/**
* Filter by published status
*
* @ingroup views_filter_handlers
*/
class views_handler_filter_node_status extends views_handler_filter {
function admin_summary() {
}
function operator_form() {
}
function query() {
$table = $this
->ensure_my_table();
$this->query
->add_where($this->options['group'], "{$table}.status = 1 OR ({$table}.uid = ***CURRENT_USER*** AND ***CURRENT_USER*** <> 0) OR ***ADMINISTER_NODES*** = 1");
}
}
Classes
Name![]() |
Description |
---|---|
views_handler_filter_node_status | Filter by published status |