You are here

function ctools_stylizer_get_css_id in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/stylizer.inc \ctools_stylizer_get_css_id()

Get the id used to cache CSS for a given style plugin and settings.

3 calls to ctools_stylizer_get_css_id()
ctools_stylizer_add_css in includes/stylizer.inc
Add the necessary CSS for a stylizer plugin to the page.
ctools_stylizer_build_style in includes/stylizer.inc
Build the files for a stylizer given the proper settings.
ctools_stylizer_cleanup_style in includes/stylizer.inc
Clean up no longer used files.

File

includes/stylizer.inc, line 222
Create customized CSS and images from palettes created by user input.

Code

function ctools_stylizer_get_css_id($plugin, $settings) {
  return 'ctools-stylizer:' . $settings['name'] . ':' . md5(serialize($settings['palette']));
}