You are here

function drush_masquerade_drush_sessions in Masquerade Extras 7.2

Same name and namespace in other branches
  1. 6.2 masquerade_drush/masquerade_drush.drush.inc \drush_masquerade_drush_sessions()

Implements drush_HOOK_COMMAND().

Parameters

string $command: Command to execute.

string $param1: A property to pass in.

See also

drush_invoke()

drush_HOOK_COMMAND()

File

masquerade_drush/masquerade_drush.drush.inc, line 93
Provides some drush commands for masquerade.

Code

function drush_masquerade_drush_sessions($command = NULL, $param1 = NULL) {
  switch ($command) {

    // Terminates a user's session.
    case 'terminate':
    case 'end':
    case 'stop':
    case 'term':
      return _masquerade_drush_sessions_terminate($param1);

    // Lists active masquerades.
    case 'list':
    case 'show':
    default:
      return _masquerade_drush_sessions($param1);
  }
}