You are here

function oembedprovider_embed_init in oEmbed 7

Same name and namespace in other branches
  1. 7.0 oembedprovider_embed/oembedprovider_embed.module \oembedprovider_embed_init()

Implements hook_init().

File

modules/oembedprovider_embed/oembedprovider_embed.module, line 6

Code

function oembedprovider_embed_init() {
  $loader = drupal_classloader();
  $map = (require drupal_get_path('module', 'oembedprovider_embed') . '/vendor/composer/autoload_namespaces.php');
  foreach ($map as $namespace => $path) {
    $loader
      ->registerNamespace(rtrim($namespace, '\\'), $path);
  }
}