You are here

function fillpdf_modules_enabled in FillPDF 7

Same name and namespace in other branches
  1. 7.2 fillpdf.module \fillpdf_modules_enabled()

Implements hook_modules_enabled().

Ensures that Completed orders can be filled out of the box, unless the permission has been explicitly disabled.

File

./fillpdf.module, line 152

Code

function fillpdf_modules_enabled($modules) {
  if (in_array('uc_order', $modules)) {
    module_load_install('fillpdf');
    _fillpdf_add_publish_completed_orders_permission();
  }
}