You are here

public function SiteAuditCheckBlockEnabled::calculateScore in Site Audit 7

Implements \SiteAudit\Check\Abstract\calculateScore().

Overrides SiteAuditCheckAbstract::calculateScore

File

Check/Block/Enabled.php, line 60
Contains \SiteAudit\Check\Block\Enabled.

Class

SiteAuditCheckBlockEnabled
Class SiteAuditCheckBlockEnabled.

Code

public function calculateScore() {
  if (!module_exists('block')) {
    $this->abort = TRUE;
    return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
  }
  $this->registry['theme_default'] = variable_get('theme_default');
  if (!$this->registry['theme_default']) {
    return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_WARN;
  }
  return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}