function print_pdf_drush_command in Printer, email and PDF versions 7.2
Same name and namespace in other branches
- 6 print_pdf/print_pdf.drush.inc \print_pdf_drush_command()
- 7 print_pdf/print_pdf.drush.inc \print_pdf_drush_command()
Implements hook_drush_command().
File
- print_pdf/
print_pdf.drush.inc, line 11 - Provide drush integration for print_pdf module PDF libraries download.
Code
function print_pdf_drush_command() {
$items = array();
$pdf_libs = array();
drush_command_invoke_all_ref('drush_pdf_libs_alter', $pdf_libs);
$items['print-pdf-download'] = array(
'description' => 'Download and extract a PDF library.',
'arguments' => array(
'library' => dt('The PDF library to download. Available choices: !libs.', array(
'!libs' => implode(', ', array_keys($pdf_libs)),
)),
),
'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',
),
// No site or config needed.
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT,
);
return $items;
}