You are here

function theme_ctools_stylizer_color_scheme_form in Chaos Tool Suite (ctools) 7

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

Theme the stylizer color scheme form.

1 theme call to theme_ctools_stylizer_color_scheme_form()
ctools_stylizer_edit_style_form_default in includes/stylizer.inc
The default stylizer style editing form.

File

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

Code

function theme_ctools_stylizer_color_scheme_form($vars) {
  $form =& $vars['form'];
  $output = '';

  // Wrapper
  $output .= '<div class="color-form clearfix">';

  // Color schemes
  //  $output .= drupal_render($form['scheme']);
  // Palette
  $output .= '<div id="palette" class="clearfix">';
  foreach (element_children($form['palette']) as $name) {
    $output .= render($form['palette'][$name]);
  }
  $output .= '</div>';

  // palette
  $output .= '</div>';

  // color form
  return $output;
}