You are here

function devel_node_access_views_default_views in Devel 5

File

./devel_node_access.module, line 613
This module gives developers feedback as to what their node_access table contains, and which nodes are protected or visible to the public.

Code

function devel_node_access_views_default_views() {
  $view = new stdClass();
  $view->name = 'devel_node_access';
  $view->description = 'View nodes in the node_access table';
  $view->access = array();
  $view->page = TRUE;
  $view->page_title = 'Nodes in the node_access table';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_type = 'table';
  $view->url = 'devel/node_access/view';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '100';
  $view->sort = array();
  $view->argument = array(
    array(
      'type' => 'realm',
      'argdefault' => '3',
      'title' => 'Nodes in the node_access table where realm is %1',
      'options' => '',
    ),
  );
  $view->field = array(
    array(
      'tablename' => 'node',
      'field' => 'title',
      'label' => 'Title',
      'handler' => 'views_handler_field_nodelink',
      'sortable' => '1',
      'defaultsort' => 'ASC',
    ),
    array(
      'tablename' => 'node',
      'field' => 'type',
      'label' => 'Type',
      'sortable' => '1',
    ),
    array(
      'tablename' => 'node',
      'field' => 'changed',
      'label' => 'Updated',
      'handler' => 'views_handler_field_date_small',
      'sortable' => '1',
    ),
  );
  $view->filter = array();
  $view->requires = array(
    node,
  );
  $views[$view->name] = $view;
  return $views;
}