function oembed_system_info_alter in oEmbed 7
Same name and namespace in other branches
- 7.0 oembed.module \oembed_system_info_alter()
Implements hook_system_info_alter().
Media and File entity are not dependencies, but if they are available, they must be version 2.
File
- ./
oembed.module, line 934 - Core functionality for oEmbed
Code
function oembed_system_info_alter(&$info, $file, $type) {
if ($type == 'module' && $file->name == 'oembed') {
if (module_exists('file_entity')) {
$info['dependencies'][] = 'file_entity (>1.99)';
}
if (module_exists('media')) {
$info['dependencies'][] = 'media (>1.99)';
}
}
}