You are here

function dialog_module_implements_alter in Dialog 7.2

File

./dialog.module, line 14
Provides an API for opening content in a dialog.

Code

function dialog_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['dialog'];
    unset($implementations['dialog']);
    $implementations['dialog'] = $group;
  }
}