• Main Page
  • Related Pages
  • Modules
  • Classes
  • Files
  • File List
  • File Members

modules/node/views_handler_filter_node_status.inc

00001 <?php
00007 class views_handler_filter_node_status extends views_handler_filter {
00008   function admin_summary() { }
00009   function operator_form(&$form, &$form_state) { }
00010   function can_expose() { return FALSE; }
00011 
00012   function query() {
00013     $table = $this->ensure_my_table();
00014     $this->query->add_where_expression($this->options['group'], "$table.status = 1 OR ($table.uid = ***CURRENT_USER*** AND ***CURRENT_USER*** <> 0 AND ***VIEW_OWN_UNPUBLISHED_NODES*** = 1) OR ***BYPASS_NODE_ACCESS*** = 1");
00015   }
00016 }

Generated on Sun Feb 26 2012 12:52:51 for Views by  doxygen 1.7.1