You are here

function _views_security_checks in Security Review 6

Checks for security_review_get_checks() when Views is enabled.

1 call to _views_security_checks()
security_review_get_checks in ./security_review.inc
Helper function allows for collection of this file's security checks.

File

./security_review.inc, line 208
Stand-alone security checks and review system.

Code

function _views_security_checks() {
  $checks['access'] = array(
    'title' => t('Views access'),
    'callback' => 'security_review_check_views_access',
    'success' => t('Views are access controlled.'),
    'failure' => t('There are Views that do not provide any access checks.'),
    'module' => 'security_review',
    // Specify this file because the callback is here.
    'file' => 'security_review',
  );
  return array(
    'views' => $checks,
  );
}