You are here

function charts_default_colors in Charts 7.2

Same name and namespace in other branches
  1. 8 includes/charts.pages.inc \charts_default_colors()

Default colors used in all libraries.

2 calls to charts_default_colors()
charts_default_settings in includes/charts.pages.inc
Provides default options used by charts_settings_form().
charts_element_info in ./charts.module
Implements hook_element_info().

File

./charts.module, line 362
Provides elements for rendering charts and Views integration.

Code

function charts_default_colors() {
  $form = variable_get('charts_default_settings');
  if (isset($form['colors'])) {
    return $form['colors'];
  }
  else {
    return array(
      '#2f7ed8',
      '#0d233a',
      '#8bbc21',
      '#910000',
      '#1aadce',
      '#492970',
      '#f28f43',
      '#77a1e5',
      '#c42525',
      '#a6c96a',
    );
  }
}