You are here

function devel_node_access_views_tables in Devel 5

File

./devel_node_access.module, line 549
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_tables() {
  $tables['node_access'] = array(
    'name' => 'node_access',
    'join' => array(
      'left' => array(
        'table' => 'node',
        'field' => 'nid',
      ),
      'right' => array(
        'field' => 'nid',
      ),
    ),
    'fields' => array(
      'realm' => array(
        'name' => t('Node Access: realm'),
        'sortable' => true,
      ),
    ),
    'filters' => array(
      'realm' => array(
        'name' => t('Node Access Realm'),
        'operator' => 'views_handler_operator_eqneq',
      ),
    ),
  );
  return $tables;
}