diff options
Diffstat (limited to 'admin/schema_inc.php')
| -rw-r--r-- | admin/schema_inc.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 51311de..a66d4d0 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -1,30 +1,30 @@ <?php global $gBitInstaller; -$gBitInstaller->registerPackageInfo( CALENDAR_PKG_NAME, array( +$gBitInstaller->registerPackageInfo( CALENDAR_PKG_NAME, [ '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>', -) ); + 'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>', +] ); // ### Default Preferences -$gBitInstaller->registerPreferences( KERNEL_PKG_NAME, array( - array(CALENDAR_PKG_NAME,'calendar_week_offset','7'), - array(CALENDAR_PKG_NAME,'calendar_hour_fraction','1'), - array(CALENDAR_PKG_NAME,'calendar_user_prefs','y'), - array(CALENDAR_PKG_NAME,'calendar_day_start','0'), - array(CALENDAR_PKG_NAME,'calendar_day_end','24'), -) ); +$gBitInstaller->registerPreferences( KERNEL_PKG_NAME, [ + [ CALENDAR_PKG_NAME, 'calendar_week_offset', '7' ], + [ CALENDAR_PKG_NAME, 'calendar_hour_fraction', '1' ], + [ CALENDAR_PKG_NAME, 'calendar_user_prefs', 'y' ], + [ CALENDAR_PKG_NAME, 'calendar_day_start', '0' ], + [ CALENDAR_PKG_NAME, 'calendar_day_end', '24' ], +] ); // ### Default User Permissions -$gBitInstaller->registerUserPermissions( CALENDAR_PKG_NAME, array( - array('p_calendar_view', 'Can browse the calendar', 'basic', CALENDAR_PKG_NAME), - array('p_calendar_view_changes', 'Can browse content changes in the calendar', 'editors', CALENDAR_PKG_NAME), -) ); +$gBitInstaller->registerUserPermissions( CALENDAR_PKG_NAME, [ + [ 'p_calendar_view', 'Can browse the calendar', 'basic', CALENDAR_PKG_NAME ], + [ 'p_calendar_view_changes', 'Can browse content changes in the calendar', 'editors', CALENDAR_PKG_NAME ], +] ); // this empty table registration is needed for the installer to pick it up to install the preferences $gBitInstaller->registerSchemaTable( CALENDAR_PKG_NAME, '', '' ); // Requirements -$gBitInstaller->registerRequirements( CALENDAR_PKG_NAME, array( - 'liberty' => array( 'min' => '2.1.4' ), -)); +$gBitInstaller->registerRequirements( CALENDAR_PKG_NAME, [ + 'liberty' => [ 'min' => '5.0.0' ], +]); |
