#944 포인트 모듈 비활성화 방법 추가

포인트 모듈을 켜고 끌 수 있게 하여서 트리거를 거치지 않을 수 있도록 하는 방법 추가.
https://github.com/xpressengine/xe-core/issues/944
This commit is contained in:
MinSoo Kim 2015-02-16 15:01:50 +09:00
parent c5893358d5
commit b1dadd21c4
6 changed files with 188 additions and 78 deletions

View file

@ -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
*