tags:

views:

15

answers:

1

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
Yes, thanks, I came to the same answer after a bit of digging (and finding the function that Drush was calling).
lazysoundsystem

related questions