searchindex_wipe.drush.inc in Search Index Wipe 7
Same filename and directory in other branches
Drush related functions.
File
searchindex_wipe.drush.incView source
<?php
/**
* @file
* Drush related functions.
*/
/**
* Implementation of hook_drush_help().
*/
function searchindex_wipe_drush_help($section) {
switch ($section) {
case 'meta:searchindex_wipe:title':
return dt('Search Index wipe commands');
case 'meta:cache:summary':
return dt('Wipes Search module generated index.');
}
}
/**
* Implements hook_drush_command().
*/
function searchindex_wipe_drush_command() {
$items['searchindex-wipe'] = array(
'description' => 'Wipes the search index',
'aliases' => array(
'siw',
),
'examples' => array(
'drush siw' => 'Wipes search index.',
),
);
return $items;
}
function drush_searchindex_wipe() {
if (drush_confirm('Are you sure you want to clear Search index?')) {
searchindex_wipe_truncate_table();
}
else {
drush_user_abort();
}
}
Functions
Name![]() |
Description |
---|---|
drush_searchindex_wipe | |
searchindex_wipe_drush_command | Implements hook_drush_command(). |
searchindex_wipe_drush_help | Implementation of hook_drush_help(). |