blob: 69a2f7fe642b551348bf26d4b8568183e8a51b90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
$registerHash = array(
'package_name' => 'articles',
'package_path' => dirname( __FILE__ ).'/',
'homeable' => TRUE,
);
$gBitSystem->registerPackage( $registerHash );
if( $gBitSystem->isPackageActive( 'articles' ) ) {
define( 'BITARTICLE_CONTENT_TYPE_GUID', 'bitarticle' );
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 );
$menuHash = array(
'package_name' => ARTICLES_PKG_NAME,
'index_url' => ARTICLES_PKG_URL.'index.php',
'menu_template' => 'bitpackage:articles/menu_articles.tpl',
);
$gBitSystem->registerAppMenu( $menuHash );
$gBitSystem->registerNotifyEvent( array( "article_submitted" => tra( "A user submits an article" ) ) );
}
?>
|