add construct_page hook

This commit is contained in:
friendica
2013-12-13 01:13:35 -08:00
parent 65c0b84313
commit 64b16f1e1a
111 changed files with 2278 additions and 2309 deletions
+4
View File
@@ -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) {