function drush_print_epub_download in Printer, email and PDF versions 7.2
Download and extract EPUB archive.
Parameters
string $library: Library to download.
File
- print_epub/
print_epub.drush.inc, line 54 - Provides drush integration for print_epub module EPUB libraries download.
Code
function drush_print_epub_download($library) {
$epub_libs = array();
drush_command_invoke_all_ref('drush_epub_libs_alter', $epub_libs);
if (isset($library) && isset($epub_libs[drupal_strtolower($library)])) {
$func = $epub_libs[drupal_strtolower($library)]['callback'];
$download_url = $func();
if ($download_url) {
_print_drush_download_lib($library, $download_url);
}
}
else {
drush_log(dt('Please specify a EPUB library. Available choices: !libs.', array(
'!libs' => implode(', ', array_keys($epub_libs)),
)), 'error');
}
}