You are here

function commerce_message_module_implements_alter in Commerce Message 7

Implements hook_module_implements_alter(). Move commerce_message_default_message_type_alter() to the end of the "hook_default_message_type_alter" hooks (execution) list.

File

./commerce_message.module, line 40

Code

function commerce_message_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'default_message_type_alter') {
    $group = $implementations['commerce_message'];
    unset($implementations['commerce_message']);
    $implementations['commerce_message'] = $group;
  }
}