You are here

print_epub_phpepub.drush.inc in Printer, email and PDF versions 7.2

Provides drush integration for print_epub_phpepub module.

File

print_epub/lib_handlers/print_epub_phpepub/print_epub_phpepub.drush.inc
View source
<?php

/**
 * @file
 * Provides drush integration for print_epub_phpepub module.
 */

/**
 * The EPUB project download URL.
 */

// URI to the the latest PHPePub version.
define('PHPEPUB_DOWNLOAD_URI', 'https://api.github.com/repos/Grandt/PHPePub/releases/latest');

/**
 * Implements hook_drush_command().
 */
function print_epub_phpepub_drush_epub_libs_alter(&$epub_libs) {
  $epub_libs['phpepub'] = array(
    'callback' => '_print_epub_phpepub_drush_download_url',
  );
}

/**
 * Discover the correct URL of the package to download.
 *
 * @return string
 *   URL of the file to download, FALSE if not known
 */
function _print_epub_phpepub_drush_download_url() {
  return PHPEPUB_DOWNLOAD_URI;
}

Functions

Namesort descending Description
print_epub_phpepub_drush_epub_libs_alter Implements hook_drush_command().
_print_epub_phpepub_drush_download_url Discover the correct URL of the package to download.

Constants