Only define functions if they have not been defined before, e.g. in themes. This makes it possible to override parts of a module and still use the other functions.
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			217 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			217 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
if(! function_exists('maintenance_content')) {
 | 
						|
function maintenance_content(&$a) {
 | 
						|
	return replace_macros(get_markup_template('maintenance.tpl'), array(
 | 
						|
		'$sysdown' => t('System down for maintenance')
 | 
						|
	));
 | 
						|
}
 | 
						|
}
 |