function node_views_query_substitutions

Same name in other branches
  1. 6.x-3.x modules/node.views.inc \node_views_query_substitutions()

Implements hook_views_query_substitutions().

File

modules/node.views.inc, line 763

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')),
    );
}