You are here

function role_export_module_implements_alter in Role Export 7

Implements hook_module_implements_alter().

File

./role_export.module, line 180
Role Export's primary module file.

Code

function role_export_module_implements_alter(&$implementations, $hook) {

  // Make sure that role_export runs first so that other modules always get the
  // new role id.
  if ($hook == 'user_role_insert' || $hook == 'user_role_update') {
    $group = $implementations['role_export'];
    $implementations = array(
      'role_export' => $group,
    ) + $implementations;
  }
}