forked from extern/egroupware
added hook about
This commit is contained in:
parent
7a81658577
commit
1d5c3853f9
24
calendar/inc/hook_about.inc.php
Normal file
24
calendar/inc/hook_about.inc.php
Normal 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 <cknudsen@radix.net><br>http://www.radix.net/~cknudsen');
|
||||
$s .= $t->set_var('developers','Mark Peters <skeeter@phpgroupware.org>');
|
||||
$s .= $t->fp('out','about');
|
||||
return $s;
|
||||
}
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user