Posted By

sherakama on 04/11/12


Tagged

textmate drush+drupal+scr


Versions (?)

drush+script+example


 / Published in: Other
 

  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  

You need to login to post a comment.