Location: PHPKode > projects > X-Forum > htdocs/modules/xforum/include/plugin.php
<?php

// $Id: plugin.php,v 4.04 2008/06/05 16:23:50 wishcraft Exp $

if (!defined('XOOPS_ROOT_PATH')) {
	exit();
}
/* some static xoopsModuleConfig */
$customConfig = array();

// specification for custom time format
// default manner will be used if not specified
$customConfig["formatTimestamp_custom"] = ""; // Could be set as "Y-m-d H:i" 

// requiring "name" field for anonymous users in edit form
$customConfig["require_name"] = true; 

// display "register or login to post" for anonymous users
$customConfig["show_reg"] = true; 

// perform forum/topic synchronization on module update
$customConfig["syncOnUpdate"] = true;

// time for pending/deleted topics/posts, expired one will be removed automatically, in days; 0 or no cleanup
$customConfig["pending_expire"] = 7;

// redirect to its URI of an attachment when requested
// Set to true if your attachment would be corrupted after download with normal way
$customConfig["download_direct"] = false;

// Set allowed editors 
// Should set from module preferences?
$customConfig["editor_allowed"] = array(); 

// Set the default editor
$customConfig["editor_default"] = ""; 

// storage method for reading records: 0 - none; 1 - cookie; 2 - db
$customConfig["read_mode"] = 2;

// expire time for reading records, in days
$customConfig["read_expire"] = 30;

// maximum records per forum for one user
$customConfig["read_items"] = 100;

// default value for editor rows, coloumns 
$customConfig["editor_rows"] = 25;
$customConfig["editor_cols"] = 60;

// default value for editor width, height (string)
$customConfig["editor_width"] = "100%";
$customConfig["editor_height"] = "400px";

// MENU handler
/* You could remove anyone by commenting out in order to disable it */
$valid_menumodes = array(
	0 => _MD_MENU_SELECT,	// for selectbox
	1 => _MD_MENU_CLICK,	// for "click to expand"
	2 => _MD_MENU_HOVER		// for "mouse hover to expand"
	);
	
return $customConfig;	
?>
Return current item: X-Forum