public function SiteAuditCheckExtensionsUnrecommended::getExtensions in Site Audit 8.2
Same name and namespace in other branches
- 7 Check/Extensions/Unrecommended.php \SiteAuditCheckExtensionsUnrecommended::getExtensions()
Get a list of unrecommended extension names and reasons.
Return value
array Keyed by module machine name, value is explanation.
1 call to SiteAuditCheckExtensionsUnrecommended::getExtensions()
- SiteAuditCheckExtensionsUnrecommended::calculateScore in Check/
Extensions/ Unrecommended.php - Implements \SiteAudit\Check\Abstract\calculateScore().
File
- Check/
Extensions/ Unrecommended.php, line 123 - Contains \SiteAudit\Check\Extensions\Unrecommended.
Class
- SiteAuditCheckExtensionsUnrecommended
- Class SiteAuditCheckExtensionsUnrecommended.
Code
public function getExtensions() {
$unrecommended_modules = array(
'bad_judgement' => dt('Joke module, framework for anarchy.'),
'php' => dt('Executable code should never be stored in the database.'),
);
if (drush_get_option('vendor') == 'pantheon') {
// Unsupported or redundant.
$pantheon_unrecommended_modules = array(
'memcache' => dt('Pantheon does not provide memcache; instead, redis is provided as a service to all customers; see http://helpdesk.getpantheon.com/customer/portal/articles/401317'),
'memcache_storage' => dt('Pantheon does not provide memcache; instead, redis is provided as a service to all customers; see http://helpdesk.getpantheon.com/customer/portal/articles/401317'),
);
$unrecommended_modules = array_merge($unrecommended_modules, $pantheon_unrecommended_modules);
}
return $unrecommended_modules;
}