mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Add admin screen to choose which member menu items to display
This commit is contained in:
parent
4b342a2d9c
commit
00850bc95d
8 changed files with 120 additions and 10 deletions
|
|
@ -205,6 +205,33 @@ class memberAdminController extends member
|
|||
$this->setRedirectUrl($returnUrl);
|
||||
}
|
||||
|
||||
public function procMemberAdminInsertFeaturesConfig()
|
||||
{
|
||||
$config = getModel('member')->getMemberConfig();
|
||||
$config->features = array();
|
||||
|
||||
$args = Context::gets(
|
||||
'scrapped_documents',
|
||||
'saved_documents',
|
||||
'my_documents',
|
||||
'my_comments',
|
||||
'active_logins'
|
||||
);
|
||||
foreach ($args as $key => $value)
|
||||
{
|
||||
$config->features[$key] = toBool($value);
|
||||
}
|
||||
|
||||
$oModuleController = getController('module');
|
||||
$output = $oModuleController->updateModuleConfig('member', $config);
|
||||
|
||||
// default setting end
|
||||
$this->setMessage('success_updated');
|
||||
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispMemberAdminFeaturesConfig');
|
||||
$this->setRedirectUrl($returnUrl);
|
||||
}
|
||||
|
||||
public function procMemberAdminInsertSignupConfig()
|
||||
{
|
||||
$oMemberModel = getModel('member');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue