diff options
author | zotlabs <mike@macgirvin.com> | 2018-08-05 23:19:33 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-08-05 23:19:33 -0700 |
commit | aeb9d5cd90a3bcb79c8d0b1645ece47e8756f422 (patch) | |
tree | d40bacdc422c54b08127f7f6514e63d9535491c9 /boot.php | |
parent | 8e9d076216a364beecf57574134fb36c12be6e6f (diff) | |
download | volse-hubzilla-aeb9d5cd90a3bcb79c8d0b1645ece47e8756f422.tar.gz volse-hubzilla-aeb9d5cd90a3bcb79c8d0b1645ece47e8756f422.tar.bz2 volse-hubzilla-aeb9d5cd90a3bcb79c8d0b1645ece47e8756f422.zip |
create alter_pdl hook
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -2072,8 +2072,8 @@ function load_pdl() { if (! count(App::$layout)) { $arr = [ - 'module' => App::$module, - 'layout' => '' + 'module' => App::$module, + 'layout' => '' ]; /** * @hooks load_pdl @@ -2095,6 +2095,14 @@ function load_pdl() { $s = @file_get_contents($p); elseif(file_exists('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) { App::$comanche->parse($s); App::$pdl = $s; |