function theme_color_scheme_form


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 color.module theme_color_scheme_form($variables)
cle7 color.module theme_color_scheme_form($variables)
elmsmedia7 color.module theme_color_scheme_form($variables)
icor7 color.module theme_color_scheme_form($variables)
meedjum_blog7 color.module theme_color_scheme_form($variables)
mooc7 color.module theme_color_scheme_form($variables)

Returns HTML for a theme's color form.


$variables: An associative array containing:

  • form: A render element representing the form.

Related topics

2 string references to the theme hook from theme_color_scheme_form()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

color_form_system_theme_settings_alter in modules/color/color.module
Implements hook_form_FORM_ID_alter().
color_theme in modules/color/color.module
Implements hook_theme().


modules/color/color.module, line 264
Allows users to change the color scheme of themes.


function theme_color_scheme_form($variables) {
  $form = $variables['form'];

  $theme = $form['theme']['#value'];
  $info = $form['info']['#value'];
  $path = drupal_get_path('theme', $theme) . '/';
  drupal_add_css($path . $info['preview_css']);

  $preview_js_path = isset($info['preview_js']) ? $path . $info['preview_js'] : drupal_get_path('module', 'color') . '/' . 'preview.js';
  // Add the JS at a weight below color.js.
  drupal_add_js($preview_js_path, array('weight' => -1));

  $output = '';
  $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 .= drupal_render($form['palette'][$name]);
  $output .= '</div>';
  // Preview
  $output .= drupal_render_children($form);
  $output .= '<h2>' . t('Preview') . '</h2>';
  // Attempt to load preview HTML if the theme provides it.
  $preview_html_path = DRUPAL_ROOT . '/' . (isset($info['preview_html']) ? drupal_get_path('theme', $theme) . '/' . $info['preview_html'] : drupal_get_path('module', 'color') . '/preview.html');
  $output .= file_get_contents($preview_html_path);
  // Close the wrapper div.
  $output .= '</div>';

  return $output;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.