function _chart_error in Google Chart Tools: Image Charts 5
Same name and namespace in other branches
- 6 chart.module \_chart_error()
- 7 chart.module \_chart_error()
Admin error.
1 call to _chart_error()
- chart_copy in ./
chart.module - Copies rendered chart image.
File
- ./
chart.module, line 661 - Google Charting API. Developed by Tj Holowaychuk
Code
function _chart_error($message, $admin = TRUE) {
if ($admin) {
if (user_access('administer chart')) {
drupal_set_message(t('Chart API error: ') . $message, 'error');
}
}
else {
drupal_set_message($message, 'error');
}
}