function drush_classified_purge in Classified Ads 6.3
Same name and namespace in other branches
- 7.3 classified.drush.inc \drush_classified_purge()
Command callback for classified-purge
Return value
void No output: nothing to return.
File
- ./
classified.drush.inc, line 148 - Drush plugin for classified.module
Code
function drush_classified_purge() {
module_load_include('inc', 'classified', 'classified.scheduled');
$purged = _classified_scheduled_build_purge();
$params = _classified_drush_get_action_stats($purged);
if ($params['@node_count']) {
drush_print(dt('Purged @node_count ads by @user_count users.', $params));
}
else {
drush_print(dt('Purge did not find any node to delete.'));
}
}