function phpwkhtmltopdf_requirements in PHP WK HTML to PDF 7.2
Implements hook_requirements().
File
- ./
phpwkhtmltopdf.install, line 6
Code
function phpwkhtmltopdf_requirements($phase) {
$results = array();
// We only care to run our requirements validation on the "runtime" phase.
switch ($phase) {
case 'runtime':
module_load_include('module', 'phpwkhtmltopdf');
// Get our own libraries to loop over and verify.
$libraries = phpwkhtmltopdf_libraries_info();
// Loop over the libraries this module defines and need to be verified.
foreach ($libraries as $name => $details) {
$lib_results = phpwkhtmltopdf_requirements_validate_library($name, 'phpwkhtmltopdf_failed_generic');
// Merge the results of this library with the previous results, we'll be returned all of them at the end.
$results = array_merge($results, $lib_results);
}
// Return the validation results to Drupal.
break;
}
return $results;
}