function user_badges_init in User Badges 7.3
Same name and namespace in other branches
- 7.4 user_badges.module \user_badges_init()
- 7 user_badges.module \user_badges_init()
- 7.2 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 29 - @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');
}
}