function drush_node_revision_delete_nrd_last_execute in Node Revision Delete 7.3
Same name and namespace in other branches
- 8 node_revision_delete.drush.inc \drush_node_revision_delete_nrd_last_execute()
Callback for the nrd-last_execute command.
File
- ./
node_revision_delete.drush.inc, line 270
Code
function drush_node_revision_delete_nrd_last_execute() {
// Getting the value from the config.
$last_execute = variable_get('node_revision_delete_last_execute');
if (!empty($last_execute)) {
$last_execute = format_date($last_execute);
$message = dt('The last time when node revision delete was made was: @last_execute.', [
'@last_execute' => $last_execute,
]);
}
else {
$message = dt('The removal of revisions through the module node revision delete has never been executed on this site.');
}
drush_print($message);
}