mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
insert config function
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8958 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
58831579e1
commit
2e2b5ff74e
2 changed files with 21 additions and 0 deletions
|
|
@ -118,6 +118,21 @@
|
|||
return $output;
|
||||
}
|
||||
|
||||
|
||||
function updateModuleConfig($module, $config, $site_srl = 0){
|
||||
$args->module = $module;
|
||||
$args->site_srl = $site_srl;
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$origin_config = $oModuleModel->getModuleConfig($module, $site_srl);
|
||||
|
||||
foreach($config as $key => $val){
|
||||
$origin_config->{$key} = $val;
|
||||
}
|
||||
|
||||
return $this->insertModuleConfig($module, $origin_config, $site_srl);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Enter a specific set of modules
|
||||
* In order to manage global configurations of modules such as board, member and so on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue