function color_get_palette
color_get_palette($theme, $default = FALSE)
Retrieves the color palette for a particular theme.
File
- modules/color/color.module, line 152
- Allows users to change the color scheme of themes.
Code
function color_get_palette($theme, $default = FALSE) { // Fetch and expand default palette. $info = color_get_info($theme); $palette = $info['schemes']['default']['colors']; // Load variable. return $default ? $palette : variable_get('color_' . $theme . '_palette', $palette); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!color!color.module/function/color_get_palette/7.x