Created
November 17, 2012 20:27
-
-
Save joelpittet/4099874 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/core/modules/system/system.module b/core/modules/system/system.module | |
| index 909cde7..3b345d6 100644 | |
| --- a/core/modules/system/system.module | |
| +++ b/core/modules/system/system.module | |
| @@ -4285,26 +4285,28 @@ function template_preprocess_system_settings_form(&$variables) { | |
| * A string containing an HTML-formatted form. | |
| * | |
| * @ingroup themeable | |
| + * @todo function to be removed later. | |
| */ | |
| function theme_exposed_filters($variables) { | |
| $form = $variables['form']; | |
| $output = ''; | |
| - if (isset($form['current'])) { | |
| + if (is_array($form)) { | |
| $items = array(); | |
| foreach (element_children($form['current']) as $key) { | |
| $items[] = drupal_render($form['current'][$key]); | |
| } | |
| $output .= theme('item_list', array('items' => $items, 'attributes' => array('class' => array('clearfix', 'current-filters')))); | |
| - } | |
| + $output .= drupal_render_children($form); | |
| - $output .= drupal_render_children($form); | |
| - | |
| - return '<div class="exposed-filters">' . $output . '</div>'; | |
| + return '<div class="exposed-filters">' . $output . '</div>'; | |
| + } else { | |
| + return '<div class="exposed-filters">' . $form . '</div>'; | |
| + } | |
| } | |
| /** | |
| - * Preprocess fuction for exposed-filters template. | |
| + * Preprocess function for exposed-filters template. | |
| * | |
| * @param $variables | |
| * An associative array containing: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment