You are here

function entity_embed_module_implements_alter in Entity Embed 7

File

./entity_embed.module, line 412
Provides a CKEditor plugin and text filter for embedding and rendering entities.

Code

function entity_embed_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'library_alter') {

    // Move hook_library_alter() to the end of the list in order to run after
    // jquery_update.
    // module_implements() iterates through $implementations with a foreach loop
    // which PHP iterates in the order that the items were added, so to move an
    // item to the end of the array, we remove it and then add it.
    $group = $implementations['entity_embed'];
    unset($implementations['entity_embed']);
    $implementations['entity_embed'] = $group;
  }
}