You are here

function theme_spaces_design_colorpicker in Spaces 6.2

Theme colorpicker element.

1 theme call to theme_spaces_design_colorpicker()
space_setting_color::form in spaces_design/spaces_design.spaces.inc

File

spaces_design/spaces_design.module, line 93

Code

function theme_spaces_design_colorpicker($element) {

  // Add Farbtastic color picker
  drupal_add_css('misc/farbtastic/farbtastic.css', 'module', 'all', FALSE);
  drupal_add_js('misc/farbtastic/farbtastic.js');
  drupal_add_js(drupal_get_path('module', 'spaces_design') . '/spaces_design.js');
  drupal_add_css(drupal_get_path('module', 'spaces_design') . '/spaces_design.css');
  $output = "<div class='spaces-design-colorpicker clear-block'>";
  $output .= theme('textfield', $element);
  $output .= "<a class='toggle-colorpicker'>" . t('Choose color') . "</a>";
  $output .= "</div>";
  $output .= "<div id='colorpicker' class='hidden'></div>";
  return $output;
}