You are here

function fb_module_implements_alter in Drupal for Facebook 7.3

Implements hook_module_implements_alter().

Unfortunately fb_canvas has to process hook_exit last, so we tweak the order of hooks to enforce that order.

File

./fb.module, line 1550
This is the core required module of Drupal for Facebook.

Code

function fb_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'exit') {

    // Move our implementation to end of list.
    $group = $implementations['fb'];
    unset($implementations['fb']);
    $implementations['fb'] = $group;
  }
  if ($hook == 'fb' && isset($implementations['fb_canvas'])) {
    $group = $implementations['fb_canvas'];
    unset($implementations['fb_canvas']);
    $implementations['fb_canvas'] = $group;
  }
}