You are here

function rb_thinktwice_action_enable_module in Rules Bonus Pack 7

The 'rb_thinktwice_action_enable_module' action.

File

./rb_thinktwice.rules.inc, line 97
Rules actions that you should think twice about. Plus some helper functions.

Code

function rb_thinktwice_action_enable_module($module) {
  $module_list[] = $module;
  if (!module_exists($module)) {
    module_enable($module_list);
  }
}