function node_views_query_substitutions

3.x node.views.inc node_views_query_substitutions()
2.x node.views.inc node_views_query_substitutions()

Implements hook_views_query_substitutions().

File

modules/node.views.inc, line 726
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')),
  );
}