From 291559423162d5b57a889bd09fd06d6c06df9288 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tadej=20Ba=C5=A1a?= <tadej.basa@gmail.com>
Date: Thu, 23 Aug 2012 09:15:28 +0200
Subject: [PATCH] Allow the possibility to control the order in which content
 is rendered

---
 .../panels_renderer_standard.class.php             |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/plugins/display_renderers/panels_renderer_standard.class.php b/plugins/display_renderers/panels_renderer_standard.class.php
index c204673..7dd6f40 100644
--- a/plugins/display_renderers/panels_renderer_standard.class.php
+++ b/plugins/display_renderers/panels_renderer_standard.class.php
@@ -259,6 +259,10 @@ class panels_renderer_standard {
       }
     }
     $this->prepared['panes'] = $first + $normal + $last;
+
+    // Allow other modules the alter the prepared panes array.
+    drupal_alter('panels_panes_prepared', $this->prepared['panes'], $this);
+
     return $this->prepared['panes'];
   }
 
-- 
1.7.9.5

