You are here

function elysia_cron_error in Elysia Cron 6.2

Same name and namespace in other branches
  1. 7.2 elysia_cron.module \elysia_cron_error()

Send an error message to user (and log also an error) Drush see it (even if $skip_user_message)

9 calls to elysia_cron_error()
elysia_cron_check_run_channel in ./elysia_cron.module
Check if the channel is idle (not running, or stuck). If so set returns available jobs.
elysia_cron_check_version_update in ./elysia_cron_update.php
elysia_cron_execute_page in ./elysia_cron.admin.inc
elysia_cron_internal_execute_job in ./elysia_cron.module
Internal function to execute a single job
elysia_cron_run_form_submit in ./elysia_cron.admin.inc

... See full list

File

./elysia_cron.module, line 732

Code

function elysia_cron_error($message, $vars = array(), $skip_user_message = false) {
  global $elysia_cron_drush;
  if (empty($elysia_cron_drush) && !$skip_user_message) {
    drupal_set_message(t($message, $vars), 'error');
  }

  /*if (!empty($elysia_cron_drush)) {
      drush_log(strip_tags(dt($message, $vars)), "error");
    }*/
  _dco_watchdog('cron', $message, $vars, WATCHDOG_ERROR);
}