You are here

function node_views_query_substitutions in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 8.3 modules/node.views.inc \node_views_query_substitutions()
  2. 6.3 modules/node.views.inc \node_views_query_substitutions()
  3. 6.2 modules/node.views.inc \node_views_query_substitutions()

Implements hook_views_query_substitutions().

File

modules/node.views.inc, line 763
Provide views data and handlers for node.module.

Code

function node_views_query_substitutions() {
  return array(
    '***ADMINISTER_NODES***' => intval(user_access('administer nodes')),
    '***VIEW_OWN_UNPUBLISHED_NODES***' => intval(user_access('view own unpublished content')),
    '***BYPASS_NODE_ACCESS***' => intval(user_access('bypass node access')),
  );
}