create alter_pdl hook
This commit is contained in:
parent
8e9d076216
commit
aeb9d5cd90
12
boot.php
12
boot.php
@ -2072,8 +2072,8 @@ function load_pdl() {
|
|||||||
if (! count(App::$layout)) {
|
if (! count(App::$layout)) {
|
||||||
|
|
||||||
$arr = [
|
$arr = [
|
||||||
'module' => App::$module,
|
'module' => App::$module,
|
||||||
'layout' => ''
|
'layout' => ''
|
||||||
];
|
];
|
||||||
/**
|
/**
|
||||||
* @hooks load_pdl
|
* @hooks load_pdl
|
||||||
@ -2095,6 +2095,14 @@ function load_pdl() {
|
|||||||
$s = @file_get_contents($p);
|
$s = @file_get_contents($p);
|
||||||
elseif(file_exists('addon/'. App::$module . '/' . $n))
|
elseif(file_exists('addon/'. App::$module . '/' . $n))
|
||||||
$s = @file_get_contents('addon/'. App::$module . '/' . $n);
|
$s = @file_get_contents('addon/'. App::$module . '/' . $n);
|
||||||
|
|
||||||
|
$arr = [
|
||||||
|
'module' => App::$module,
|
||||||
|
'layout' => $s
|
||||||
|
];
|
||||||
|
call_hooks('alter_pdl',$arr);
|
||||||
|
$s = $arr['layout'];
|
||||||
|
|
||||||
if($s) {
|
if($s) {
|
||||||
App::$comanche->parse($s);
|
App::$comanche->parse($s);
|
||||||
App::$pdl = $s;
|
App::$pdl = $s;
|
||||||
|
Reference in New Issue
Block a user