You are here

function oembed_system_info_alter in oEmbed 7.0

Same name and namespace in other branches
  1. 7 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 872

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)';
    }
  }
}