So i wrote a lot of custom code which is executed form custom drush commands from the command line/terminal, works fine, but now the client changes his mind and want to execute the code from the UI, the admin panel.

Is there any way i can run those drush commands from that level or not?

Thanks, Will


in php you can do something like :

shell_exec("drush status");

if this is temporary, you can execute it from devel/php, but if it's a production site solution that you need, you can per example add a custom form that does this in its submit method

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.