You are here

function elysia_cron_error in Elysia Cron 7.2

Same name and namespace in other branches
  1. 6.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)

8 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_execute_page in ./elysia_cron.admin.inc
Page callback for 'admin/config/system/cron/execute/%' path.
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
Submit handler for 'elysia_cron_run_form' form.
elysia_cron_settings_form in ./elysia_cron.admin.inc
Form builder for general settings form.

... See full list

File

./elysia_cron.module, line 911

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');
  }

  /* @todo remove following code if not necessary.
    if (!empty($_elysia_cron_drush)) {
    drush_log(strip_tags(dt($message, $vars)), "error");
    }*/
  watchdog('cron', $message, $vars, WATCHDOG_ERROR);
}