function fillpdf_modules_enabled in FillPDF 7.2
Same name and namespace in other branches
- 7 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 139 - Allows mappings of PDFs to site content
Code
function fillpdf_modules_enabled($modules) {
if (in_array('uc_order', $modules)) {
module_load_install('fillpdf');
_fillpdf_add_publish_completed_orders_permission();
}
}