function drush_backend_output_collect

8.0.x backend.inc drush_backend_output_collect($string)
6.x backend.inc drush_backend_output_collect($string)
7.x backend.inc drush_backend_output_collect($string)
5.x backend.inc drush_backend_output_collect($string)
master backend.inc drush_backend_output_collect($string)

Callback to collect backend command output.

1 call to drush_backend_output_collect()
drush_backend_output in includes/backend.inc
Print the json-encoded output of this command, including the encoded log records, context information, etc.
1 string reference to 'drush_backend_output_collect'

File

includes/backend.inc, line 186
Drush backend API

Code

function drush_backend_output_collect($string) {
  static $output = '';
  if (!isset($string)) {
    return $output;
  }

  $output .= $string;
  return $string;
}