mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fixes to get the hooks working again
This commit is contained in:
parent
d53632ec09
commit
cfe09c3489
@ -16,15 +16,6 @@
|
||||
|
||||
$GLOBALS['phpgw']->translation->add_app('infolog');
|
||||
|
||||
//echo "<p>hook_addressbook_view(ab_id=$GLOBALS[ab_id])</p>\n";
|
||||
/*
|
||||
$link = CreateObject('infolog.uilink');
|
||||
$out = '<table>'.$link->getEntry('entry','addressbook',$GLOBALS['ab_id'])."\n".
|
||||
$link->showLinks('links','addressbook',$GLOBALS['ab_id'],'!infolog')."</table>\n";
|
||||
$html = CreateObject('etemplate.html');
|
||||
$out = $html->form($out,'','/index.php',array('menuaction'=>'addressbook.uiaddressbook.view','ab_id'=>$GLOBALS['ab_id']));
|
||||
$GLOBALS['phpgw']->template->set_var('phpgw_body',$out,True);
|
||||
*/
|
||||
$GLOBALS['phpgw_info']['etemplate']['hooked'] = True;
|
||||
|
||||
$infolog = CreateObject('infolog.uiinfolog');
|
||||
@ -32,6 +23,6 @@
|
||||
'menuaction' => 'addressbook.uiaddressbook.view',
|
||||
'ab_id' => $GLOBALS['ab_id']
|
||||
));
|
||||
$GLOBALS['phpgw_info']['flags']['currentapp'] = $save_app;
|
||||
$GLOBALS['phpgw_info']['flags']['currentapp'] = $save_app;
|
||||
unset($GLOBALS['phpgw_info']['etemplate']['hooked']);
|
||||
|
||||
|
@ -16,7 +16,12 @@
|
||||
|
||||
$GLOBALS['phpgw']->translation->add_app('infolog');
|
||||
|
||||
$infolog = CreateObject('infolog.uiinfolog');
|
||||
$infolog->get_list(True,'event',$GLOBALS['cal_id']);
|
||||
$GLOBALS['phpgw_info']['etemplate']['hooked'] = True;
|
||||
|
||||
$GLOBALS['phpgw_info']['flags']['currentapp'] = $save_app;
|
||||
$infolog = CreateObject('infolog.uiinfolog');
|
||||
$infolog->index(0,'calendar',$GLOBALS['cal_id'],array(
|
||||
'menuaction' => 'calendar.uicalendar.view',
|
||||
'cal_id' => $GLOBALS['cal_id']
|
||||
));
|
||||
$GLOBALS['phpgw_info']['flags']['currentapp'] = $save_app;
|
||||
unset($GLOBALS['phpgw_info']['etemplate']['hooked']);
|
||||
|
@ -17,9 +17,12 @@
|
||||
|
||||
$phpgw->translation->add_app('infolog');
|
||||
|
||||
//echo "<p>hook_projects_view($GLOBALS['project_id'])</p>";
|
||||
$GLOBALS['phpgw_info']['etemplate']['hooked'] = True;
|
||||
|
||||
$infolog = CreateObject('infolog.uiinfolog');
|
||||
$infolog->get_list(True,'proj',$GLOBALS['project_id']);
|
||||
|
||||
$phpgw_info['flags']['currentapp'] = $save_app;
|
||||
$infolog->index(0,'calendar',$GLOBALS['project_id'],array(
|
||||
'menuaction' => 'projects.uiprojects.view',
|
||||
'project_id' => $GLOBALS['project_id']
|
||||
));
|
||||
$GLOBALS['phpgw_info']['flags']['currentapp'] = $save_app;
|
||||
unset($GLOBALS['phpgw_info']['etemplate']['hooked']);
|
||||
|
Loading…
Reference in New Issue
Block a user