You are here

function skinr_context_module_implements_alter in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 skinr_context/skinr_context.module \skinr_context_module_implements_alter()

Implements hook_module_implements_alter().

File

skinr_context/skinr_context.module, line 16
Provides Skinr integration with Context.

Code

function skinr_context_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'modules_enabled') {

    // Make our version of hook_modules_enabled() happen before that of
    // skinr core. This way skin settings groups are imported before skin
    // configurations.
    $group = $implementations['skinr_context'];
    unset($implementations['skinr_context']);
    $implementations = array_reverse($implementations, TRUE);
    $implementations['skinr_context'] = $group;
    $implementations = array_reverse($implementations, TRUE);
  }
}