summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorHash9 <hash9@users.sourceforge.net>2006-07-03 21:27:25 +0000
committerHash9 <hash9@users.sourceforge.net>2006-07-03 21:27:25 +0000
commit08a1b8fad0d8efde3f71d39e205111d4dddd8c20 (patch)
treefd2a1b4bcbd0be70d914b4c6191df80382180f77 /modules
parent99537f91581ad2fb9a961db0b78f60a005f4cea1 (diff)
downloadcalendar-08a1b8fad0d8efde3f71d39e205111d4dddd8c20.tar.gz
calendar-08a1b8fad0d8efde3f71d39e205111d4dddd8c20.tar.bz2
calendar-08a1b8fad0d8efde3f71d39e205111d4dddd8c20.zip
allow modules to define their own user preference tabs
Diffstat (limited to 'modules')
-rw-r--r--modules/userprefs.php12
-rw-r--r--modules/userprefs.tpl3
2 files changed, 15 insertions, 0 deletions
diff --git a/modules/userprefs.php b/modules/userprefs.php
new file mode 100644
index 0000000..294b914
--- /dev/null
+++ b/modules/userprefs.php
@@ -0,0 +1,12 @@
+<?php
+if( $gBitSystem->isFeatureActive('calendar_user_prefs') ) {
+ include_once( CALENDAR_PKG_PATH.'admin/admin_calendar_inc.php' );
+ if( !empty( $_REQUEST['calendar_submit'] ) ) {
+ foreach( $calendarValues as $item ) {
+ if( !empty( $_REQUEST[$item] ) ) {
+ $editUser->storePreference( $item, $_REQUEST[$item], 'calendar' );
+ }
+ }
+ }
+}
+?> \ No newline at end of file
diff --git a/modules/userprefs.tpl b/modules/userprefs.tpl
new file mode 100644
index 0000000..ff7e264
--- /dev/null
+++ b/modules/userprefs.tpl
@@ -0,0 +1,3 @@
+{if $gBitSystem->isFeatureActive('calendar_user_prefs') }
+ {include file='bitpackage:calendar/calendar_preferences_inc.tpl' settings=$userPrefs}
+{/if} \ No newline at end of file