Skip to content

Instantly share code, notes, and snippets.

@emmairwin
Created November 12, 2014 19:14
Show Gist options
  • Save emmairwin/1b95ad95807043ea4c8b to your computer and use it in GitHub Desktop.
Save emmairwin/1b95ad95807043ea4c8b to your computer and use it in GitHub Desktop.
function MYMOD_drush_command(){
$items = array();
$items['loc-update'] = array(
'description' => dt('Run Location update'),
'arguments' => array(
'arg1' => dt('Optional User ID'),
),
'examples' => array(
'Standard example' => 'drush loc-update',
'Argument example' => 'drush loc-update 5',
),
'aliases' => array('gloc'),
);
return $items;
}
function drush_MYMOD_loc_update($uid){
echo "test";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment