You are here

function drush_print_epub_download_validate in Printer, email and PDF versions 7.2

Implements drush_hook_COMMAND_validate().

File

print_epub/print_epub.drush.inc, line 36
Provides drush integration for print_epub module EPUB libraries download.

Code

function drush_print_epub_download_validate($library = NULL) {
  if (is_null($library)) {
    $epub_libs = array();
    drush_command_invoke_all_ref('drush_epub_libs_alter', $epub_libs);
    drush_set_error('DRUSH_EPUBDL_MISSING_ARG', dt("Usage: drush !cmd <library>\nWhere <library> is one of the following: !libs\n\nTry 'drush !cmd --help' for more information.", array(
      '!cmd' => 'print-epub-download',
      '!libs' => implode(', ', array_keys($epub_libs)),
    )));
  }
}