diff options
| author | Lester Caine <lester@lsces.co.uk> | 2005-07-15 17:49:00 +0000 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2005-07-15 17:49:00 +0000 |
| commit | 7ddffa8626f5ce14e77747d8e425317f799b8bae (patch) | |
| tree | 2429b1fbcfb477eca31ae148b9c7d5f449ceda97 /admin | |
| parent | 93ade86f13c78ae054cd9f31be11d1698c617b6f (diff) | |
| download | calendar-7ddffa8626f5ce14e77747d8e425317f799b8bae.tar.gz calendar-7ddffa8626f5ce14e77747d8e425317f799b8bae.tar.bz2 calendar-7ddffa8626f5ce14e77747d8e425317f799b8bae.zip | |
Operation viewer for bitweaver history - except popup's are not appearing
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/schema_inc.php | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 2200cf1..adad1e4 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -60,17 +60,9 @@ global $gBitInstaller; $gBitInstaller->makePackageHomeable('calendar'); foreach( array_keys( $tables ) AS $tableName ) { - $gBitInstaller->registerSchemaTable( CALENDAR_PKG_DIR, $tableName, $tables[$tableName] ); + $gBitInstaller->registerSchemaTable( CALENDAR_PKG_NAME, $tableName, $tables[$tableName] ); } -$gBitInstaller->registerPackageInfo( CALENDAR_PKG_DIR, array( - 'description' => "Calendar package to display tiki entries by date, and set events", - 'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>', - 'version' => '0.1', - 'state' => 'beta', - 'dependencies' => '', -) ); - // ### Indexes $indices = array ( 'tiki_calendar_categories_idx' => array( 'table' => 'tiki_calendar_categories', 'cols' => 'calendar_id,name', 'opts' => NULL ), @@ -78,30 +70,29 @@ $indices = array ( 'tiki_calendar_locations_idx' => array( 'table' => 'tiki_calendar_locations', 'cols' => 'name', 'opts' => NULL ) ); -$gBitInstaller->registerSchemaIndexes( CALENDAR_PKG_DIR, $indices ); - -// ### Defaults +$gBitInstaller->registerSchemaIndexes( CALENDAR_PKG_NAME, $indices ); -// ### Default Menu Options -$gBitInstaller->registerMenuOptions( CALENDAR_PKG_DIR, array( - array(42,'o','Calendar','tiki-calendar.php',0,'feature_calendar','bit_p_view_calendar',''), - array(42,'o','Calendar','tiki-admin_calendars.php',1,'feature_calendar','bit_p_admin_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_DIR, array( - array('bit_p_view_calendar', 'Can browse the calendar', 'basic', 'calendar'), - array('bit_p_change_events', 'Can change events in the calendar', 'registered', 'calendar'), - array('bit_p_add_events', 'Can add events in the calendar', 'registered', 'calendar'), - array('bit_p_admin_calendar', 'Can create/admin calendars', 'admin', 'calendar') +$gBitInstaller->registerUserPermissions( CALENDAR_PKG_NAME, array( + array('bit_p_view_calendar', 'Can browse the calendar', 'basic', CALENDAR_PKG_NAME), + array('bit_p_change_events', 'Can change events in the calendar', 'registered', CALENDAR_PKG_NAME), + array('bit_p_add_events', 'Can add events in the calendar', 'registered', CALENDAR_PKG_NAME), + array('bit_p_admin_calendar', 'Can create/admin calendars', 'admin', CALENDAR_PKG_NAME) ) ); // ### Default Preferences -$gBitInstaller->registerPreferences( CALENDAR_PKG_DIR, array( - array ('kernel', 'feature_jscalendar', 'n'), - array ('calendar', 'calendar_blogs', 'y'), - array ('calendar', 'calendar_users', 'y'), - array ('calendar', 'calendar_wiki', 'y') +$gBitInstaller->registerPreferences( CALENDAR_PKG_NAME, array( +// array ('kernel', 'feature_jscalendar', 'n'), + array (CALENDAR_PKG_NAME, 'calendar_blogs', 'y'), + array (CALENDAR_PKG_NAME, 'calendar_users', 'y'), + array (CALENDAR_PKG_NAME, 'calendar_wiki', 'y') ) ); ?> |
