function party_user_drush_command in Party 7
Implements hook_drush_command().
File
- modules/
party_user/ party_user.drush.inc, line 9
Code
function party_user_drush_command() {
$items = array();
$items['party-login'] = array(
'callback' => 'drush_party_user_login',
'description' => 'Display a one time login link for the given party if an attached user is found.',
'aliases' => array(
'pli',
),
'required-arguments' => 1,
'arguments' => array(
'party' => 'The id of the party we want to generate a link for.',
'path' => 'Optional path to redirect to after logging in.',
),
'examples' => array(
'drush party-user-login 2 user' => 'Displays a one-time login link for the user account attached to party 2 and redirects to the path user.',
),
);
return $items;
}