From c6c4c0c9ff4874448662ce2d35787f4a92e06c69 Mon Sep 17 00:00:00 2001 From: wjames5 Date: Fri, 12 Feb 2010 14:53:29 +0000 Subject: flatten services hash and introduce new param for adding some meta data about services to easy site configuration, see lcconfig --- bit_setup_inc.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bit_setup_inc.php b/bit_setup_inc.php index 472840c..ace185d 100755 --- a/bit_setup_inc.php +++ b/bit_setup_inc.php @@ -23,7 +23,10 @@ if( $gBitSystem->isPackageActive( 'tags' ) && $gBitUser->hasPermission( 'p_tags_ ); $gBitSystem->registerAppMenu( $menuHash ); - $gLibertySystem->registerService( LIBERTY_SERVICE_TAGS, TAGS_PKG_NAME, array( + $gLibertySystem->registerService( + LIBERTY_SERVICE_TAGS, + TAGS_PKG_NAME, + array( 'content_display_function' => 'tags_content_display', 'content_edit_function' => 'tags_content_edit', 'content_list_sql_function' => 'tags_content_list_sql', @@ -36,6 +39,10 @@ if( $gBitSystem->isPackageActive( 'tags' ) && $gBitUser->hasPermission( 'p_tags_ 'content_body_tpl' => 'bitpackage:tags/view_tags_body.tpl', 'users_expunge_function' => 'tags_user_expunge', 'content_search_tpl' => 'bitpackage:tags/search_inc.tpl' - ) ); + ), + array( + 'description' => tra( 'Enables the addition of tags to any content' ), + ) + ); } ?> -- cgit v1.3