added hook about

This commit is contained in:
ceb 2002-01-28 00:22:04 +00:00
parent 7a81658577
commit 1d5c3853f9
2 changed files with 39 additions and 11 deletions

View File

@ -0,0 +1,24 @@
<?php
/**************************************************************************\
* phpGroupWare - about *
* http://www.phpgroupware.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
function about_app($tpl,$handle)
{
$t = CreateObject('phpgwapi.Template',$GLOBALS['phpgw']->common->get_tpl_dir('phpgwapi'));
$s = $t->set_file(array('about' => 'about_app.tpl'));
$s .= $t->set_var('app_title',lang('calendar'));
$s .= $t->set_var('based_on',lang('based on'));
$s .= $t->set_var('written_by',lang('written by'));
$s .= $t->set_var('source','Webcalendar by Craig Knudsen &lt;cknudsen@radix.net&gt;<br>http://www.radix.net/~cknudsen');
$s .= $t->set_var('developers','Mark Peters &lt;skeeter@phpgroupware.org&gt;');
$s .= $t->fp('out','about');
return $s;
}

View File

@ -24,17 +24,21 @@
$setup_info['calendar']['tables'][] = 'phpgw_cal_alarm';
/* The hooks this app includes, needed for hooks registration */
$setup_info['calendar']['hooks'][] = 'add_def_prefs';
$setup_info['calendar']['hooks'][] = 'admin';
$setup_info['calendar']['hooks'][] = 'deleteaccount';
$setup_info['calendar']['hooks'][] = 'email';
$setup_info['calendar']['hooks'][] = 'home';
$setup_info['calendar']['hooks'][] = 'home_day';
$setup_info['calendar']['hooks'][] = 'home_month';
$setup_info['calendar']['hooks'][] = 'home_week';
$setup_info['calendar']['hooks'][] = 'home_year';
$setup_info['calendar']['hooks'][] = 'manual';
$setup_info['calendar']['hooks'][] = 'preferences';
$setup_info['calendar']['hooks'] = array
(
'add_def_prefs',
'admin',
'deleteaccount',
'email',
'home',
'home_day',
'home_month',
'home_week',
'home_year',
'manual',
'preferences',
'about'
);
/* Dependencies for this app to work */
$setup_info['calendar']['depends'][] = array(