30 lines
592 B
PHP
30 lines
592 B
PHP
|
<?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]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|