summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-18 19:05:05 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-18 19:05:05 +0000
commitb4ed9bcda68a80bee15f366cb5a8a85033b8c784 (patch)
tree8da9131360bf10ee92c746b7fa740e23d31ece9c /admin
parentc0dc92218773219fa3eb6b805ece4106e81d0902 (diff)
downloadcalendar-b4ed9bcda68a80bee15f366cb5a8a85033b8c784.tar.gz
calendar-b4ed9bcda68a80bee15f366cb5a8a85033b8c784.tar.bz2
calendar-b4ed9bcda68a80bee15f366cb5a8a85033b8c784.zip
extensive calendar work
Diffstat (limited to 'admin')
-rw-r--r--admin/admin_calendar_inc.php37
-rw-r--r--admin/schema_inc.php12
2 files changed, 1 insertions, 48 deletions
diff --git a/admin/admin_calendar_inc.php b/admin/admin_calendar_inc.php
deleted file mode 100644
index d229bd4..0000000
--- a/admin/admin_calendar_inc.php
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-// $Header: /cvsroot/bitweaver/_bit_calendar/admin/admin_calendar_inc.php,v 1.4 2005/07/30 12:00:32 lsces Exp $
-
-// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
-// All Rights Reserved. See copyright.txt for details and a complete list of authors.
-// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
-
-include_once( CALENDAR_PKG_PATH.'CalendarLib.php' );
-
-$formCalendarFeatures = array(
- "calendar_blogs" => array(
- 'label' => 'Display blog updates',
- ),
- "calendar_users" => array(
- 'label' => 'Display user personal page updates',
- ),
- "calendar_wiki" => array(
- 'label' => 'Display wiki page updates',
- ),
- "calendar_contact" => array(
- 'label' => 'Display contact record updates',
- ),
- "feature_jscalendar" => array(
- 'label' => 'Enable jscalendar popup',
- ),
-);
-$gBitSmarty->assign( 'formCalendarFeatures',$formCalendarFeatures );
-
-if (isset($_REQUEST["calendarfeatures"])) {
-
- foreach( $formCalendarFeatures as $item => $data ) {
- simple_set_toggle( $item );
- }
-}
-
-?>
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index f1acc9e..e099326 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -1,25 +1,15 @@
<?php
global $gBitInstaller;
-$gBitInstaller->makePackageHomeable('calendar');
+$gBitInstaller->makePackageHomeable( 'calendar' );
$gBitInstaller->registerPackageInfo( CALENDAR_PKG_NAME, array(
'description' => "Calendar package to display bitweaver entries by date, and set events",
'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>',
) );
-// ### Defaults
-
// ### Default User Permissions
$gBitInstaller->registerUserPermissions( CALENDAR_PKG_NAME, array(
array('bit_p_view_calendar', 'Can browse the calendar', 'basic', CALENDAR_PKG_NAME),
) );
-
-// ### Default Preferences
-$gBitInstaller->registerPreferences( CALENDAR_PKG_NAME, array(
- array (CALENDAR_PKG_NAME, 'calendar_blogs', 'y'),
- array (CALENDAR_PKG_NAME, 'calendar_users', 'y'),
- array (CALENDAR_PKG_NAME, 'calendar_wiki', 'y')
-) );
-
?>