You are here

function statspro_get_current_charting_option in Statistics Pro 6.2

Returns the charting option to be used.

Return value

<string>

8 calls to statspro_get_current_charting_option()
statspro_comment in ./statspro_comment.inc
statspro_get_bar_chart in ./statspro_graphs.inc
Returns the HTML for one bar graph.
statspro_get_pie_chart in ./statspro_graphs.inc
Returns the HTML for one pie graph.
statspro_log in ./statspro_log.inc
statspro_main_admin_settings_form in ./statspro_admin_settings.inc
Main admin settings form.

... See full list

File

./statspro_graphs.inc, line 40
Graphs generation help.

Code

function statspro_get_current_charting_option() {
  static $current = NULL;
  if ($current === NULL) {
    $default_charting_option = statspro_get_default_charting_option();
    $current = variable_get('statspro_charting_library', $default_charting_option);
    $charting_libraries = charts_graphs_apis();
    if (!isset($charting_libraries[$current])) {
      $current = $default_charting_option;
    }
  }
  return $current;
}