function optimizedb_drush_command in OptimizeDB 6
Same name and namespace in other branches
- 7 includes/optimizedb.drush.inc \optimizedb_drush_command()
Implements hook_drush_command().
File
- includes/
optimizedb.drush.inc, line 11 - Functions for optimizing the tables and cleaning table cache_form.
Code
function optimizedb_drush_command() {
$items = array();
$items['optimizedb-optimize'] = array(
'description' => dt('Optimizing tables of the active database.'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
'callback' => 'drush_optimizedb_optimize',
);
$items['optimizedb-cleaning'] = array(
'description' => dt('Cleaning the table cache_form.'),
'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
'callback' => 'drush_optimizedb_cleaning',
);
return $items;
}