function statspro_get_available_charts_graphs in Statistics Pro 6.2
Informs if charting dependencies are met.
Return value
<mixed> array of available charting options or FALSE
6 calls to statspro_get_available_charts_graphs()
- statspro_admin_settings_form_validate in ./
statspro_admin_settings.inc - statspro_main_admin_settings_form in ./
statspro_admin_settings.inc - Main admin settings form.
- statspro_main_admin_settings_form_submit in ./
statspro_admin_settings.inc - Implementation of hook_modulename_submit() for main admin settings form.
- theme_statspro_content in ./
statspro_overview.inc - theme_statspro_log in ./
statspro_overview.inc
File
- ./
statspro_settings.inc, line 202
Code
function statspro_get_available_charts_graphs() {
static $dependency_ok = NULL;
if ($dependency_ok === NULL) {
$dependency_ok = FALSE;
if (module_exists('charts_graphs')) {
$charting_libraries = charts_graphs_apis();
if (count($charting_libraries) != 0) {
$dependency_ok = $charting_libraries;
}
}
}
return $dependency_ok;
}