You are here

function fivestar_add_inline_css in Fivestar 5

Same name and namespace in other branches
  1. 6.2 fivestar.module \fivestar_add_inline_css()
  2. 6 fivestar.module \fivestar_add_inline_css()

Add Inline CSS to the page, only used on admin/settings/fivestar page.

2 calls to fivestar_add_inline_css()
fivestar_get_inline_css in ./fivestar.module
Retrieve a list of all inline CSS to be added to the page.
theme_fivestar_preview_widget in ./fivestar.module

File

./fivestar.module, line 1456
A simple n-star voting widget, usable in other forms.

Code

function fivestar_add_inline_css($widget_key = NULL, $css = NULL, $reset = FALSE) {
  static $inline_css;
  if (!isset($inline_css) || $reset) {
    $inline_css = array();
  }
  if (isset($widget_key) && isset($inline_css)) {
    $inline_css[$widget_key] = $css;
  }
  return $inline_css;
}