mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-11-03 22:01:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			607 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			607 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  Smarty_Method_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]);
 | 
						|
    } 
 | 
						|
} 
 | 
						|
 | 
						|
?>
 |