Skip to content

Instantly share code, notes, and snippets.

@aastrong
Created April 16, 2015 17:20
Show Gist options
  • Save aastrong/0d6fa09a7cbd9bbe1884 to your computer and use it in GitHub Desktop.
Save aastrong/0d6fa09a7cbd9bbe1884 to your computer and use it in GitHub Desktop.
Fix sorting for wetkit bootstrap horizontal tabs
diff --git a/modules/wetkit_bootstrapx/plugins/styles/bootstrap_horiz_styles.inc b/modules/wetkit_bootstrapx/plugins/styles/bootstrap_horiz_styles.inc
index f3ca6e8..f316a25 100644
--- a/modules/wetkit_bootstrapx/plugins/styles/bootstrap_horiz_styles.inc
+++ b/modules/wetkit_bootstrapx/plugins/styles/bootstrap_horiz_styles.inc
@@ -41,9 +41,7 @@ function theme_wetkit_bootstrapx_bootstrap_horiz_styles_render_region($vars) {
$content[$pane_title] = array('#markup' => '<details id="details-pane-' . $pane_id . '" class="tab-pane">' . '<summary>' . $pane_title . '</summary>' . $pane . '</details>');
}
- arsort($content);
- $first = array_shift($content);
- $content[] = $first;
+
$output .= drupal_render($content);
// End Panes output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment