function phpwkhtmltopdf_libraries_info in PHP WK HTML to PDF 7.2
Same name and namespace in other branches
- 7 phpwkhtmltopdf.module \phpwkhtmltopdf_libraries_info()
Implements hook_libraries_info().
2 calls to phpwkhtmltopdf_libraries_info()
- phpwkhtmltopdf_failed_generic in ./
phpwkhtmltopdf.install - Creates the info to be returned during hook_requirements().
- phpwkhtmltopdf_requirements in ./
phpwkhtmltopdf.install - Implements hook_requirements().
File
- ./
phpwkhtmltopdf.module, line 6
Code
function phpwkhtmltopdf_libraries_info() {
return array(
// Define the phpwkhtmltopdf library details.
'phpwkhtmltopdf' => array(
'name' => 'PHPWkHtmlToPdf',
'vendor url' => 'https://github.com/mikehaertl/phpwkhtmltopdf',
'download url' => 'https://github.com/mikehaertl/phpwkhtmltopdf/archive/2.0.1.tar.gz',
'version arguments' => array(
'file' => 'src/Pdf.php',
'pattern' => '/version ([0-9\\.\\w-]+)/',
),
'files' => array(
'php' => array(
'src/Pdf.php',
'src/Image.php',
'src/Command.php',
),
),
'integration files' => array(
// Add our custom wrapper class for backward compatibility.
'phpwkhtmltopdf' => array(
'lib/phpwkhtmltopdf.php',
),
),
'dependencies' => array(
'php-shellcommand (>=1.0.2)',
'php-tmpfile (>=1.0.0)',
),
),
// Define the php-shellcommand' library details.
'php-shellcommand' => array(
'name' => 'php-shellcommand',
'vendor url' => 'https://github.com/mikehaertl/php-shellcommand',
'download url' => 'https://github.com/mikehaertl/php-shellcommand/archive/1.0.3.tar.gz',
'version arguments' => array(
'file' => 'src/Command.php',
'pattern' => '/version ([0-9\\.\\w-]+)/',
),
'files' => array(
'php' => array(
'src/Command.php',
),
),
),
// Define the php-tmpfile library details.
'php-tmpfile' => array(
'name' => 'php-tmpfile',
'vendor url' => 'https://github.com/mikehaertl/php-tmpfile',
'download url' => 'https://github.com/mikehaertl/php-tmpfile/archive/1.0.0.tar.gz',
'version arguments' => array(
'file' => 'src/File.php',
'pattern' => '/version ([0-9\\.\\w-]+)/',
),
'files' => array(
'php' => array(
'src/File.php',
),
),
),
);
}