function print_pdf_drush_command in Printer, email and PDF versions 7
Same name and namespace in other branches
- 6 print_pdf/print_pdf.drush.inc \print_pdf_drush_command()
- 7.2 print_pdf/print_pdf.drush.inc \print_pdf_drush_command()
Implements hook_drush_command().
File
- print_pdf/
print_pdf.drush.inc, line 28 - drush integration for print_pdf module PDF libraries download.
Code
function print_pdf_drush_command() {
$items = array();
$items['print-pdf-download'] = array(
'description' => 'Download a PDF library.',
'arguments' => array(
'library' => dt('The PDF library to download. Either tcpdf, dompdf or wkhtmltopdf.'),
),
'options' => array(
'path' => dt('A path to the download folder. If omitted Drush will use the default location (@path).', array(
'@path' => 'sites/all/libraries',
)),
),
'aliases' => array(
'pdfdl',
),
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT,
);
return $items;
}