You are here

function tokenauth_drush_command in Token authentication 7

Same name and namespace in other branches
  1. 6.2 tokenauth.drush.inc \tokenauth_drush_command()
  2. 6 tokenauth.drush.inc \tokenauth_drush_command()

Implements hook_drush_command().

File

./tokenauth.drush.inc, line 11
Tokenauth drush commands.

Code

function tokenauth_drush_command() {
  $items = array();
  $items['tokenauth-reset'] = array(
    'description' => 'Reset the tokenauth token for the specified user.',
    'examples' => array(
      'drush tokenauth-reset 3' => 'Reset the token for user/3.',
      'drush tokenauth-reset bob' => 'Reset the token for user "bob".',
    ),
    'arguments' => array(
      'user' => 'Specify a user whose token to reset. You may use uid or username.',
    ),
    'drupal dependencies' => array(
      'tokenauth',
    ),
  );
  $items['tokenauth-reset-all'] = array(
    'description' => 'Reset the tokenauth token for all users.',
    'examples' => array(
      'drush tokenauth-reset-all' => 'Reset the tokens for all users.',
    ),
    'drupal dependencies' => array(
      'tokenauth',
    ),
  );
  return $items;
}