add load_pdl hook for plugins

This commit is contained in:
redmatrix
2015-08-22 14:28:33 -07:00
parent 7c34911b1c
commit 39df2a475e
2 changed files with 6 additions and 1 deletions

View File

@@ -1990,6 +1990,11 @@ function load_pdl(&$a) {
require_once('include/comanche.php');
if (! count($a->layout)) {
$arr = array('module' => $a->module, 'layout' => '');
call_hooks('load_pdl',$arr);
$s = $arr['layout'];
$n = 'mod_' . $a->module . '.pdl' ;
$u = comanche_get_channel_id();
if($u)