You are here

function forena_error in Forena Reports 7

Same name and namespace in other branches
  1. 6 forena.common.inc \forena_error()

General wrapper procedure for reporting erros

Parameters

string $short_message Message that will be displayed to the users:

string $log Message that will be recorded in the logs.:

16 calls to forena_error()
forena_db_sync in ./forena.admin.inc
Syncronize the data
forena_get_report in ./forena.common.inc
Accepts the name of a file
forena_repository in ./forena.common.inc
forena_save_report in ./forena.admin.inc
Save the report file to disk
forena_settings_submit in ./forena.admin.inc
Added submit handler to create directories and clear menu cache

... See full list

File

./forena.common.inc, line 496
Common functions used throughout the project but loaded in this file to keep the module file lean.

Code

function forena_error($short_message = '', $log = '') {
  if ($short_message) {
    drupal_set_message(check_markup($short_message), 'error');
  }
  if ($log) {
    watchdog('forena', $log, NULL, WATCHDOG_ERROR);
  }
}