function demo_drush_status in Demonstration site (Sandbox / Snapshot) 6
Callback for drush command demo-status.
1 string reference to 'demo_drush_status'
- demo_drush_command in ./
demo.drush.inc - Implementation of hook_drush_command().
File
- ./
demo.drush.inc, line 92
Code
function demo_drush_status() {
// last reset date
$reset_date = variable_get('demo_reset_last', 0) ? format_date(variable_get('demo_reset_last', 0)) : dt('Never');
drush_print('Last reset: ' . $reset_date);
// default snapshot name
if (module_exists('demo_reset')) {
drush_print('Default snapshot to use for reset on cron run: ' . variable_get('demo_dump_cron', dt('None')));
}
// dump path
drush_print('Current dump path: ' . variable_get('demo_dump_path', dt('n/a')));
//TODO add default dump file name and appending date format http://drupal.org/node/754798
}