You are here

function _module_builder_drush_print in Module Builder 7

Same name and namespace in other branches
  1. 6.2 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 13
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?
  }
}