You are here

function forena_error in Forena Reports 6

Same name and namespace in other branches
  1. 7 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 494
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($short_message, 'error');
  }
  if ($log) {
    watchdog('forena', $log, NULL, WATCHDOG_ERROR);
  }
}