Skip to content

Instantly share code, notes, and snippets.

@alvar0hurtad0
Last active August 29, 2015 14:19
Show Gist options
  • Save alvar0hurtad0/0c8b3cbae7a6e0410f8f to your computer and use it in GitHub Desktop.
Save alvar0hurtad0/0c8b3cbae7a6e0410f8f to your computer and use it in GitHub Desktop.
<?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