public function SiteAuditCheckContentFieldsUnused::getResultWarn in Site Audit 7
Same name and namespace in other branches
- 8.2 Check/Content/FieldsUnused.php \SiteAuditCheckContentFieldsUnused::getResultWarn()
Implements \SiteAudit\Check\Abstract\getResultWarn().
Overrides SiteAuditCheckAbstract::getResultWarn
File
- Check/
Content/ FieldsUnused.php, line 46 - Contains \SiteAudit\Check\Content\FieldsUnused.
Class
- SiteAuditCheckContentFieldsUnused
- Class SiteAuditCheckContentFieldsUnused.
Code
public function getResultWarn() {
$report = array();
foreach ($this->registry['fields_unused'] as $bundle_name => $fields) {
$report[] = $bundle_name .= ': ' . implode(', ', $fields);
}
return dt('The following fields are unused: @report', array(
'@report' => implode('; ', $report),
));
}