function drush_masquerade_drush_masquerade in Masquerade Extras 7.2
Same name and namespace in other branches
- 6.2 masquerade_drush/masquerade_drush.drush.inc \drush_masquerade_drush_masquerade()
Implements drush_HOOK_COMMAND().
Parameters
string $command: The command to execute.
string $param1: A property to pass in.
string $param2: An additional property to pass in.
See also
drush_invoke()
drush_HOOK_COMMAND()
File
- masquerade_drush/
masquerade_drush.drush.inc, line 123 - Provides some drush commands for masquerade.
Code
function drush_masquerade_drush_masquerade($command = NULL, $param1 = NULL, $param2 = NULL) {
switch ($command) {
// Terminates a masquerade from the source account.
case 'terminate':
case 'end':
case 'stop':
case 'term':
return _masquerade_drush_terminate_masquerade($param1);
// Starts a masquerade.
case 'start':
case 'begin':
return _masquerade_drush_start_masquerade($param1, $param2);
// Lists active masquerades.
case 'list':
case 'show':
default:
return _masquerade_drush_list($param1);
}
}