From 64b16f1e1ac303b476ffac891c99f6404bc04f53 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 13 Dec 2013 01:13:35 -0800 Subject: add construct_page hook --- boot.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 1396de641..4134ce3fa 100755 --- a/boot.php +++ b/boot.php @@ -1871,6 +1871,10 @@ function construct_page(&$a) { // layout completely with a new layout definition, or replace/remove existing content. if($comanche) { + $arr = array('module' => $a->module, 'layout' => $a->layout); + call_hooks('construct_page',$arr); + $a->layout = $arr['layout']; + foreach($a->layout as $k => $v) { if((strpos($k,'region_') === 0) && strlen($v)) { if(strpos($v,'$region_') !== false) { -- cgit v1.2.3