diff --git a/core/modules/color/color.module b/core/modules/color/color.module index 8956c7a..58c9d17 100644 --- a/core/modules/color/color.module +++ b/core/modules/color/color.module @@ -255,13 +255,6 @@ function template_preprocess_color_scheme_form(&$variables) { // Add the JS at a weight below color.js. drupal_add_js($preview_js_path, array('weight' => -1)); - $colors = array(); - foreach (element_children($form['palette']) as $name) { - $colors[] = $form['palette'][$name]; - } - $variables['colors'] = $colors; - unset($variables['form']['palette']); - // 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'); $variables['html_preview'] = file_get_contents($preview_html_path); diff --git a/core/modules/color/templates/color-scheme-form.html.twig b/core/modules/color/templates/color-scheme-form.html.twig index 23e85ba..5bb4609 100644 --- a/core/modules/color/templates/color-scheme-form.html.twig +++ b/core/modules/color/templates/color-scheme-form.html.twig @@ -19,9 +19,7 @@