mirror of
				https://github.com/pluginsGLPI/example.git
				synced 2025-11-04 05:24:52 +01:00 
			
		
		
		
	Add hook on infocom form
This commit is contained in:
		
							
								
								
									
										6
									
								
								hook.php
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								hook.php
									
									
									
									
									
								
							@@ -659,4 +659,10 @@ function plugin_example_display_login() {
 | 
			
		||||
   echo "</div>";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function plugin_example_infocom_hook($params) {
 | 
			
		||||
   echo "<tr><th colspan='4'>";
 | 
			
		||||
   echo __("Plugin example displays on central page", "example");
 | 
			
		||||
   echo "</th></tr>";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
@@ -177,6 +177,7 @@ function plugin_init_example() {
 | 
			
		||||
 | 
			
		||||
   $PLUGIN_HOOKS['display_central']['example'] = "plugin_example_display_central";
 | 
			
		||||
   $PLUGIN_HOOKS['display_login']['example'] = "plugin_example_display_login";
 | 
			
		||||
   $PLUGIN_HOOKS['infocom']['example'] = "plugin_example_infocom_hook";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user