You are here

function _module_builder_drush_print in Module Builder 6.2

Same name and namespace in other branches
  1. 7 includes/common.inc \_module_builder_drush_print()

Safe version of drush_print that can be called without worrying about where we are.

1 call to _module_builder_drush_print()
module_builder_update_documentation in includes/update.inc
Updates hook documentation files.

File

includes/common.inc, line 16
common.inc Stuff needed both by module and drush command.

Code

function _module_builder_drush_print($message, $indent, $type = 'message') {
  if (MODULE_BUILDER_ENV == 'drush') {

    // Running in a Drush CLI.
    drush_print($message, $indent);
  }
  else {

    // Running in Drupal UI.
    // @TODO?
  }
}