Posted By


sherakama on 04/11/12

Tagged


Statistics


Viewed 751 times
Favorited by 0 user(s)

drush+script+example


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2.  
  3.  
  4. function hello_world($args) {
  5. var_dump($args);
  6. }
  7.  
  8.  
  9.  
  10. // /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  11.  
  12. $args = drush_get_arguments();
  13. if(function_exists($args[2])) {
  14. $args[2]($args);
  15. drush_log('completed running', 'ok');
  16. } else {
  17. drush_log('Could not find drush script command', 'error');
  18. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.