function flood_unblock_clear_drush in Flood Unblock 7
Command callback for drush flood-unblock.
1 string reference to 'flood_unblock_clear_drush'
- flood_unblock_drush_command in ./
flood_unblock.drush.inc - Implements hook_drush_command().
File
- ./
flood_unblock.drush.inc, line 39 - Drush integration for the Flood Unblock module.
Code
function flood_unblock_clear_drush($type = NULL) {
$types = array(
'all' => 'flood_unblock_drush_clear',
'ip' => 'flood_unblock_drush_clear',
'user' => 'flood_unblock_drush_clear',
);
if (!isset($type)) {
$type = drush_choice($types, 'Enter a number to choose which flood to clear.', '!key');
if (empty($type)) {
return drush_user_abort();
}
}
drush_op($types[$type], $type);
return FALSE;
}