function _chart_error in Google Chart Tools: Image Charts 6
Same name and namespace in other branches
- 5 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 793 - Provides Google chart API integration.
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');
}
}