2009-03-22 16:09:05 +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
|
|
|
|
|
*/
|
|
|
|
|
|
2009-08-08 17:28:23 +00:00
|
|
|
/**
|
|
|
|
|
* Unregisters compiler function
|
|
|
|
|
*
|
|
|
|
|
* @param string $compiler_tag name of template function
|
|
|
|
|
*/
|
2009-11-03 20:38:38 +00:00
|
|
|
function Smarty_Method_Unregister_Compiler_Function($smarty, $compiler_tag)
|
2009-08-08 17:28:23 +00:00
|
|
|
{
|
|
|
|
|
if (isset($smarty->registered_plugins[$compiler_tag]) && $smarty->registered_plugins[$compiler_tag][0] == 'compiler') {
|
|
|
|
|
unset($smarty->registered_plugins[$compiler_tag]);
|
2009-03-22 16:09:05 +00:00
|
|
|
}
|
|
|
|
|
}
|
2009-08-08 17:28:23 +00:00
|
|
|
|
2009-03-22 16:09:05 +00:00
|
|
|
?>
|