You are here

function revisioning_ux_module_implements_alter in Revisioning 7

Same name and namespace in other branches
  1. 8 revisioning_ux/revisioning_ux.module \revisioning_ux_module_implements_alter()

Implements hook_module_implements_alter().

Make sure that our hook_menu_alter is called after revisioning_menu_alter.

File

revisioning_ux/revisioning_ux.module, line 14
Revisioning User Experience Adjustments

Code

function revisioning_ux_module_implements_alter(&$implementations, $hook) {

  // Do nothing unless we implement the hook being tested (safety).
  if (isset($implementations['revisioning_ux'])) {
    switch ($hook) {

      // Make hook menu_alter and hook theme run last.
      case 'menu_alter':
      case 'theme':
        $group = $implementations['revisioning_ux'];
        unset($implementations['revisioning_ux']);
        $implementations['revisioning_ux'] = $group;
        break;
    }
  }
}