function FrxDrupalApplication::error in Forena Reports 6.2
Same name and namespace in other branches
- 7.2 FrxDrupalApplication.inc \FrxDrupalApplication::error()
- 7.3 FrxDrupalApplication.inc \FrxDrupalApplication::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.:
Overrides FrxHostApplication::error
File
- ./
FrxDrupalApplication.inc, line 167 - HostApp.inc Defines all the interface points between the host application and Forena. Each of these methods must be specified in order for Forena to function properly. The base class here is drupal, so those
Class
Code
function error($short_message = '', $log = '') {
if ($short_message) {
drupal_set_message(check_markup($short_message), 'error');
}
if ($log) {
watchdog('forena', $log, NULL, WATCHDOG_ERROR);
}
}