You are here

function _evercurrent_last_run in Evercurrent 7.2

Same name and namespace in other branches
  1. 7 evercurrent.module \_evercurrent_last_run()

Helper function. Get interval since last try.

1 call to _evercurrent_last_run()
evercurrent_requirements in ./evercurrent.module
Implements hook_requirements().

File

./evercurrent.module, line 164
evercurrent.module

Code

function _evercurrent_last_run() {
  if ($last_run = variable_get(RMH_LAST_TRY, FALSE)) {
    $last_time = format_interval(time() - $last_run);
  }
  else {
    $last_time = t('Never.');
  }
  return t('%last_time', array(
    '%last_time' => $last_time,
  ));
}