'articles', 'package_path' => dirname( __FILE__ ).'/', 'homeable' => TRUE, ); $gBitSystem->registerPackage( $registerHash ); if( $gBitSystem->isPackageActive( 'articles' ) ) { define( 'ARTICLE_STATUS_DENIED', 0 ); define( 'ARTICLE_STATUS_DRAFT', 100 ); define( 'ARTICLE_STATUS_PENDING', 200 ); define( 'ARTICLE_STATUS_APPROVED', 300 ); define( 'ARTICLE_STATUS_RETIRED', 400 ); if( $gBitUser->hasPermission( 'p_articles_read' )) { $menuHash = array( 'package_name' => ARTICLES_PKG_NAME, 'index_url' => ARTICLES_PKG_URL.'index.php', 'menu_template' => 'bitpackage:articles/menu_articles.tpl', 'admin_comments_url' => ARTICLES_PKG_URL.'admin/admin_types.php', ); $gBitSystem->registerAppMenu( $menuHash ); } $gBitSystem->registerNotifyEvent( array( "article_submitted" => tra( "A user submits an article" ) ) ); } ?>