If hacked returns the $projects array as the function result from hacked-list-projects, then that data will be available in the 'object' element of the result record returned from drush backend invoke.

ex:

  $values = drush_invoke_process_args("hacked-list-projects");
  drush_print_r($values["object"]);

Patch attached.

CommentFileSizeAuthor
hacked-return-projects.patch227 bytesgreg.1.anderson

Comments

steven jones’s picture

Assigned: Unassigned » steven jones

Sounds like a good idea, will commit when I get a moment.

steven jones’s picture

Status: Needs review » Fixed

Pushed to all branches. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.