translation->add_app('infolog');
//echo "
hook_addressbook_view(ab_id=$GLOBALS[ab_id])
\n";
/*
$link = CreateObject('infolog.uilink');
$out = ''.$link->getEntry('entry','addressbook',$GLOBALS['ab_id'])."\n".
$link->showLinks('links','addressbook',$GLOBALS['ab_id'],'!infolog')."
\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);
*/
$infolog = CreateObject('infolog.uiinfolog');
$infolog->index(0,'addressbook',$GLOBALS['ab_id'],array(
'menuaction' => 'addressbook.uiaddressbook.view',
'ab_id' => $GLOBALS['ab_id']
));
$GLOBALS['phpgw_info']['flags']['currentapp'] = $save_app;