summaryrefslogtreecommitdiff
path: root/modules/lastblogposts/config_inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lastblogposts/config_inc.php')
-rwxr-xr-x[-rw-r--r--]modules/lastblogposts/config_inc.php44
1 files changed, 23 insertions, 21 deletions
diff --git a/modules/lastblogposts/config_inc.php b/modules/lastblogposts/config_inc.php
index 4c5ad5a..bd94e2b 100644..100755
--- a/modules/lastblogposts/config_inc.php
+++ b/modules/lastblogposts/config_inc.php
@@ -1,26 +1,28 @@
<?php
global $gBitThemes;
-$gBitThemes->registerModule( array(
- 'title' => tra( 'Recent Blog Posts' ),
- 'description' => tra( 'Displays a list of recent blog posts. The list can be customized by various parameters.' ),
- 'params' => array(
- 'user' => array( 'help' => 'Set a user name to limit the list of recent posts to just posts by that user.', ),
- 'blog_id' => array( 'help' => 'Set a blog_id to limit the list of recent posts to just posts to that blog', ),
- 'groupd_id' => array( 'help' => 'Set a groupd_id to limit the list of recent posts to just posts by users in that group.', ),
- 'max_records' => array(),
- 'offset' => array( 'help' => 'Set offset to offest the start of the list' ),
- 'status' => array( 'help' => 'Set status to "draft" to display a list of draft posts by the logged in user.',
- 'select' => array( 'public' => 'Public',
- 'draft' => 'Draft',
- ),
- ),
- ),
- 'package' => BLOGS_PKG_NAME,
- 'directory' => 'lastblogposts',
- 'handler' => 'mod_last_blog_posts.php',
- 'template' => 'mod_last_blog_posts.tpl',
- 'legacy_dir' => 'modules', // force module to show up in correct array during upgrade process
+$gBitThemes->registerModule( [
+ 'title' => \Bitweaver\KernelTools::tra( 'Recent Blog Posts' ),
+ 'description' => \Bitweaver\KernelTools::tra( 'Displays a list of recent blog posts. The list can be customized by various parameters.' ),
+ 'params' => [
+ 'user' => [ 'help' => 'Set a user name to limit the list of recent posts to just posts by that user.',],
+ 'blog_id' => [ 'help' => 'Set a blog_id to limit the list of recent posts to just posts to that blog',],
+ 'groupd_id' => [ 'help' => 'Set a groupd_id to limit the list of recent posts to just posts by users in that group.',],
+ 'max_records' => [],
+ 'offset' => [ 'help' => 'Set offset to offest the start of the list' ],
+ 'status' => [
+ 'help' => 'Set status to "draft" to display a list of draft posts by the logged in user.',
+ 'select' => [
+ 'public' => 'Public',
+ 'draft' => 'Draft',
+ ],
+ ],
+ ],
+ 'package' => BLOGS_PKG_NAME,
+ 'directory' => 'lastblogposts',
+ 'handler' => 'mod_last_blog_posts.php',
+ 'template' => 'mod_last_blog_posts.tpl',
+ 'legacy_dir' => 'modules', // force module to show up in correct array during upgrade process
'legacy_prefix' => 'mod_', // force module to show up in correct array during upgrade process
-));
+] );