30 lines
554 B
PHP
30 lines
554 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Smarty method Unregister_Function
|
||
|
*
|
||
|
* Unregister a Smarty function plugin
|
||
|
*
|
||
|
* @package Smarty
|
||
|
* @subpackage SmartyMethod
|
||
|
* @author Uwe Tews
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Unregister a Smarty function plugin
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Unregisters custom function
|
||
|
*
|
||
|
* @param string $function_tag name of template function
|
||
|
*/
|
||
|
function unregister_function($smarty, $function_tag)
|
||
|
{
|
||
|
if (isset($smarty->registered_plugins[$function_tag]) && $smarty->registered_plugins[$function_tag][0] == 'function') {
|
||
|
unset($smarty->registered_plugins[$function_tag]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|