function blazy_system_info_alter in Blazy 7
Implements hook_system_info_alter().
File
- ./
blazy.module, line 33 - Provides basic Blazy integration for lazy loading and multi-serving images.
Code
function blazy_system_info_alter(&$info, $file, $type) {
if ($type == 'module' && $info['name'] == 'Blazy') {
// Safe to lock dependencies to prevent its accidental removal.
foreach ([
'registry_autoload',
'psr0',
'xautoload',
'autoload',
] as $key) {
if (module_exists($key)) {
$info['dependencies'][] = $key . ':' . $key;
break;
}
}
}
}