From 2add0be2ed5b5ede162ba0d77aa7889bd1e06c50 Mon Sep 17 00:00:00 2001 From: Jakob Perry Date: Wed, 6 Jan 2016 15:27:05 -0800 Subject: [PATCH] 2645612 --- ctools.module | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ctools.module b/ctools.module index 008214e..1ae1fcb 100644 --- a/ctools.module +++ b/ctools.module @@ -758,6 +758,12 @@ function ctools_process(&$variables, $hook) { $variables['classes_array'] = array_diff($variables['classes_array'], $remove_classes); } + // Update the classes within the attributes array to match the classes array + if (isset($variables['attributes_array']['class'])) { + $variables['attributes_array']['class'] = $variables['classes_array']; + $variables['attributes'] = $variables['attributes_array'] ? drupal_attributes($variables['attributes_array']) : ''; + } + // Since this runs after template_process(), we need to re-implode the // classes array. $variables['classes'] = implode(' ', $variables['classes_array']); -- 2.5.4 (Apple Git-61)