|
From: Jon O. <jon...@us...> - 2005-08-20 18:49:36
|
Update of /cvsroot/mxbb/mx_forum/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27606/modules/mx_forum/admin Modified Files: mx_module_defs.php Log Message: minor updates Index: mx_module_defs.php =================================================================== RCS file: /cvsroot/mxbb/mx_forum/admin/mx_module_defs.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_module_defs.php 20 Aug 2005 18:22:39 -0000 1.1 --- mx_module_defs.php 20 Aug 2005 18:49:25 -0000 1.2 *************** *** 34,38 **** //define('MX_ALL_DATA' , -1); // Flag - write all data ! class mx_blockcp_parameter { // ------------------------------ --- 34,38 ---- //define('MX_ALL_DATA' , -1); // Flag - write all data ! class mx_module_defs { // ------------------------------ *************** *** 57,65 **** return $type_row; } // =================================================== // display parameter field and data in the add/edit page // =================================================== ! function display_edit( $parameter_data ) { global $template, $blockcptemplate, $mx_blockcp, $mx_root_path, $theme, $lang; --- 57,83 ---- return $type_row; } + + // =================================================== + // Submit custom parameter field and data + // =================================================== + function submit_module_parameters( $parameter_data, $block_id ) + { + global $HTTP_POST_VARS, $db, $board_config, $html_entities_match, $html_entities_replace; + + $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_name']]; + $parameter_opt = ''; + + switch ( $parameter_data['parameter_type'] ) + { + + } + + return array('parameter_value' => $parameter_value, 'parameter_opt' => $parameter_opt); + } // =================================================== // display parameter field and data in the add/edit page // =================================================== ! function display_module_parameters( $parameter_data ) { global $template, $blockcptemplate, $mx_blockcp, $mx_root_path, $theme, $lang; *************** *** 82,86 **** $template->set_filenames(array( ! 'parameter' => $mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_blockcp_parameter.tpl') ); --- 100,104 ---- $template->set_filenames(array( ! 'parameter' => $mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_module_parameters.tpl') ); |