fixes to get the hooks working again

This commit is contained in:
Ralf Becker 2002-11-23 20:45:07 +00:00
parent d53632ec09
commit cfe09c3489
3 changed files with 16 additions and 17 deletions

View File

@ -16,15 +16,6 @@
$GLOBALS['phpgw']->translation->add_app('infolog'); $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; $GLOBALS['phpgw_info']['etemplate']['hooked'] = True;
$infolog = CreateObject('infolog.uiinfolog'); $infolog = CreateObject('infolog.uiinfolog');
@ -32,6 +23,6 @@
'menuaction' => 'addressbook.uiaddressbook.view', 'menuaction' => 'addressbook.uiaddressbook.view',
'ab_id' => $GLOBALS['ab_id'] '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']); unset($GLOBALS['phpgw_info']['etemplate']['hooked']);

View File

@ -16,7 +16,12 @@
$GLOBALS['phpgw']->translation->add_app('infolog'); $GLOBALS['phpgw']->translation->add_app('infolog');
$infolog = CreateObject('infolog.uiinfolog'); $GLOBALS['phpgw_info']['etemplate']['hooked'] = True;
$infolog->get_list(True,'event',$GLOBALS['cal_id']);
$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']);

View File

@ -17,9 +17,12 @@
$phpgw->translation->add_app('infolog'); $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 = CreateObject('infolog.uiinfolog');
$infolog->get_list(True,'proj',$GLOBALS['project_id']); $infolog->index(0,'calendar',$GLOBALS['project_id'],array(
'menuaction' => 'projects.uiprojects.view',
$phpgw_info['flags']['currentapp'] = $save_app; 'project_id' => $GLOBALS['project_id']
));
$GLOBALS['phpgw_info']['flags']['currentapp'] = $save_app;
unset($GLOBALS['phpgw_info']['etemplate']['hooked']);