game/onyx2/modules/templates/smarty/sysplugins/smarty_method_unregister_compiler_function.php

30 lines
592 B
PHP
Raw Normal View History

2020-11-15 15:12:32 +00:00
<?php
/**
* Smarty method Unregister_Compiler_Function
*
* Unregister a Smarty compiler function plugin
*
* @package Smarty
* @subpackage SmartyMethod
* @author Uwe Tews
*/
/**
* Unregister a Smarty compiler function plugin
*/
/**
* Unregisters compiler function
*
* @param string $compiler_tag name of template function
*/
function unregister_compiler_function($smarty, $compiler_tag)
{
if (isset($smarty->registered_plugins[$compiler_tag]) && $smarty->registered_plugins[$compiler_tag][0] == 'compiler') {
unset($smarty->registered_plugins[$compiler_tag]);
}
}
?>