You are here

function module_builder_callback_hook_download in Module Builder 6.2

Same name and namespace in other branches
  1. 7 drush/module_builder.drush.inc \module_builder_callback_hook_download()

Callback for downloading hook data.

1 string reference to 'module_builder_callback_hook_download'
module_builder_drush_command in drush/module_builder.drush.inc
Implementation of hook_drush_command().

File

drush/module_builder.drush.inc, line 559
Module builder drush commands.

Code

function module_builder_callback_hook_download() {
  $directory = _module_builder_get_hooks_directory();
  $return = module_builder_update_data();
  if (!$return) {
    return drush_set_error('Problem downloading hooks.');
  }
  else {
    drush_print("Hook files have been downloaded to {$directory} and processed.");
  }
}