You are here

function theme_calendar_colorpicker in Calendar 5.2

Same name and namespace in other branches
  1. 6.2 calendar.module \theme_calendar_colorpicker()

Format calendar_colorpicker.

File

./calendar.module, line 1061
Adds calendar filtering and displays to Views.

Code

function theme_calendar_colorpicker($element) {
  $path = drupal_get_path('module', 'calendar');

  // Add Farbtastic color picker
  drupal_add_css('misc/farbtastic/farbtastic.css');
  drupal_add_js('misc/farbtastic/farbtastic.js');

  // Add our custom js and css for our calendar_color
  drupal_add_js($path . '/js/calendar_colorpicker.js');
  $output = '';
  $output .= '<div id="' . $element['#id'] . '" ' . drupal_attributes($element['#attributes']) . ' ></div>';
  return theme('form_element', $element, $output);
}