Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save joelpittet/4099874 to your computer and use it in GitHub Desktop.

Select an option

Save joelpittet/4099874 to your computer and use it in GitHub Desktop.
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