I'd like to trigger a Drush command from a Drupal function, anyone have any suggestions for how best to do it?
+1
A:
Some drush commands are just making calls to standard Drupal functionality, so you could dig and find that function and call it. If you have a specific command, ask and I am sure someone will help.
Some of the other things drush does, like downloading modules, are probably best left there, as they are high level administrative functions. What is the end goal you are trying to achieve?
Jeremy French
2010-06-30 07:37:00
Yes, thanks, I came to the same answer after a bit of digging (and finding the function that Drush was calling).
lazysoundsystem
2010-06-30 13:57:00