You are here

function fivestar_previews_expand in Fivestar 7.2

2 string references to 'fivestar_previews_expand'
fivestar_field_formatter_settings_form in includes/fivestar.field.inc
Implements hook_field_formatter_settings_form().
fivestar_field_widget_settings_form in includes/fivestar.field.inc
Implements hook_field_widget_settings_form().

File

includes/fivestar.field.inc, line 284
Provides CCK integration for fivestar module.

Code

function fivestar_previews_expand($element) {
  foreach (element_children($element) as $css) {
    $vars = array(
      'css' => $css,
      'name' => strtolower($element[$css]['#title']),
    );
    $element[$css]['#description'] = theme('fivestar_preview_widget', $vars);
  }
  return $element;
}