summaryrefslogtreecommitdiff
path: root/bit_setup_inc.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-02-24 12:06:08 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-02-24 12:06:08 +0000
commitbbc084371f5035b37a5316667e693f8ab01004a3 (patch)
tree8bb22b6af2c35bea96a9f42253835dbf90a405cc /bit_setup_inc.php
parent36d74c85ba75a07ace1d2e5bce8cb8e747dda471 (diff)
downloadpigeonholes-bbc084371f5035b37a5316667e693f8ab01004a3.tar.gz
pigeonholes-bbc084371f5035b37a5316667e693f8ab01004a3.tar.bz2
pigeonholes-bbc084371f5035b37a5316667e693f8ab01004a3.zip
move service functions to Pigeonholes.php, fix content types dropdown, only check path permissions when it's required, reduce defaults to as simple as possible
Diffstat (limited to 'bit_setup_inc.php')
-rw-r--r--bit_setup_inc.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php
index 803ba2e..e61769b 100644
--- a/bit_setup_inc.php
+++ b/bit_setup_inc.php
@@ -1,7 +1,7 @@
<?php
/**
* @author xing <xing@synapse.plus.com>
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
* @package Pigeonholes
* @subpackage functions
*/
@@ -17,10 +17,13 @@ $gBitSystem->registerPackage( $registerHash );
define( 'PIGEONHOLES_CONTENT_TYPE_GUID', 'pigeonholes' );
if( $gBitSystem->isPackageActive( 'pigeonholes' ) ) {
+ // include service functions
+ require_once( PIGEONHOLES_PKG_PATH.'Pigeonholes.php' );
+
$gLibertySystem->registerService( LIBERTY_SERVICE_CATEGORIZATION, PIGEONHOLES_PKG_NAME, array(
'content_display_function' => 'pigeonholes_content_display',
'content_preview_function' => 'pigeonholes_content_preview',
- 'content_edit_function' => 'pigeonholes_content_input',
+ 'content_edit_function' => 'pigeonholes_content_edit',
'content_store_function' => 'pigeonholes_content_store',
'content_expunge_function' => 'pigeonholes_content_expunge',
'content_edit_tab_tpl' => 'bitpackage:pigeonholes/pigeonholes_input_inc.tpl',
@@ -28,9 +31,6 @@ if( $gBitSystem->isPackageActive( 'pigeonholes' ) ) {
'content_nav_tpl' => 'bitpackage:pigeonholes/display_paths.tpl',
) );
- // include service functions
- require_once( PIGEONHOLES_PKG_PATH.'servicefunctions_inc.php' );
-
if( $gBitUser->hasPermission( 'bit_p_view_pigeonholes' ) ) {
$gBitSystem->registerAppMenu( PIGEONHOLES_PKG_DIR, 'Categories', PIGEONHOLES_PKG_URL.'index.php', 'bitpackage:pigeonholes/menu_pigeonholes.tpl', 'Pigeonholes' );
}