public function SiteAuditCheckContentFieldEnabled::calculateScore in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Content/FieldEnabled.php \SiteAuditCheckContentFieldEnabled::calculateScore()
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Content/ FieldEnabled.php, line 58 - Contains \SiteAudit\Check\Content\FieldEnabled.
Class
- SiteAuditCheckContentFieldEnabled
- Class SiteAuditCheckContentFieldEnabled.
Code
public function calculateScore() {
if (!module_exists('field')) {
$this->abort = TRUE;
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_PASS;
}