public function SiteAuditCheckUsersCountBlocked::calculateScore in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Users/CountBlocked.php \SiteAuditCheckUsersCountBlocked::calculateScore()
Implements \SiteAudit\Check\Abstract\calculateScore().
Overrides SiteAuditCheckAbstract::calculateScore
File
- Check/
Users/ CountBlocked.php, line 64 - Contains \SiteAudit\Check\Users\CountBlocked.
Class
- SiteAuditCheckUsersCountBlocked
- Class SiteAuditCheckUsersCountBlocked.
Code
public function calculateScore() {
$sql_query = 'SELECT COUNT(uid) ';
$sql_query .= 'FROM {users} ';
$sql_query .= 'WHERE uid != 0 ';
$sql_query .= 'AND status = 0 ';
$this->registry['count_users_blocked'] = db_query($sql_query)
->fetchField();
return SiteAuditCheckAbstract::AUDIT_CHECK_SCORE_INFO;
}