Last active
August 29, 2015 14:19
-
-
Save alvar0hurtad0/0c8b3cbae7a6e0410f8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* File mymodule.drush.inc.php | |
**/ | |
/** | |
* Implementation of hook_drush_command(). | |
*/ | |
function mymodule_drush_command() { | |
$items['mymodule-action'] = array( | |
'description' => 'Your pretty description to show on drush help', | |
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH, // your level access required (into a drupal, outside a drupal, etc.) | |
); | |
return $item; | |
} | |
/** | |
* Implements mymodule-action command callback. | |
* | |
**/ | |
function drusn_mymodule_mymodule_command (){ | |
// your drush actions comes here | |
drush_print ('hola k ase'); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment