function fancybox_drush_download in fancyBox 7.2
Callback to the fancybox-download Drush command.
1 call to fancybox_drush_download()
- drush_fancybox_post_pm_enable in ./
fancybox.drush.inc - Implements drush_MODULE_post_COMMAND().
1 string reference to 'fancybox_drush_download'
- fancybox_drush_command in ./
fancybox.drush.inc - Implements hook_drush_command().
File
- ./
fancybox.drush.inc, line 48 - Provides the fancyBox jQuery plugin, a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages, and an extensive settings page for configuring fancyBox settings and how fancyBox…
Code
function fancybox_drush_download() {
$args = func_get_args();
$path = $args[0] ? $args[0] : drush_get_context('DRUSH_DRUPAL_ROOT') . '/sites/all/libraries/fancybox';
$cmd = 'git clone https://github.com/fancyapps/fancyBox.git ' . $path;
if (drush_shell_exec($cmd)) {
drush_log(dt('fancyBox was download to !path.', array(
'!path' => $path,
)), 'success');
}
else {
drush_log(dt('Drush was unable to download fancyBox to !path.', array(
'!path' => $path,
)) . "\n" . dt('Attempted command: !cmd.', array(
'!cmd' => $cmd,
)), 'error');
}
}