You are here

function user_badges_init in User Badges 7.2

Same name and namespace in other branches
  1. 7.4 user_badges.module \user_badges_init()
  2. 7 user_badges.module \user_badges_init()
  3. 7.3 user_badges.module \user_badges_init()

Implements hook_init(). Include code that is only needed if other modules are present.

File

./user_badges.module, line 28
@brief User Badges module file

Code

function user_badges_init() {

  // Add any other module that can initiate actions.
  if (module_exists('trigger') || module_exists('rules')) {
    module_load_include('inc', 'user_badges', 'user_badges.actions');
  }
  if (module_exists('autoassignrole')) {
    module_load_include('inc', 'user_badges', 'user_badges.autoassignrole');
  }
}