mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-13 23:42:13 +09:00
#944 포인트 모듈 비활성화 방법 추가
포인트 모듈을 켜고 끌 수 있게 하여서 트리거를 거치지 않을 수 있도록 하는 방법 추가. https://github.com/xpressengine/xe-core/issues/944
This commit is contained in:
parent
c5893358d5
commit
b1dadd21c4
6 changed files with 188 additions and 78 deletions
|
|
@ -119,6 +119,31 @@ class moduleController extends module
|
|||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Delete module trigger
|
||||
*
|
||||
*/
|
||||
function deleteModuleTriggers($module)
|
||||
{
|
||||
$args = new stdClass();
|
||||
$args->module = $module;
|
||||
|
||||
$output = executeQuery('module.deleteModuleTriggers', $args);
|
||||
if($output->toBool())
|
||||
{
|
||||
//remove from cache
|
||||
$GLOBALS['__triggers__'] = NULL;
|
||||
$oCacheHandler = CacheHandler::getInstance('object', NULL, TRUE);
|
||||
if($oCacheHandler->isSupport())
|
||||
{
|
||||
$cache_key = 'triggers';
|
||||
$oCacheHandler->delete($cache_key);
|
||||
}
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Add module extend
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue