mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	new hooks processConfig and showConfig
hook 'showConfig' is anly called for extension variables if the type is set to 'hook'. 'processConfig' is called after the extension configuration is read
This commit is contained in:
		
							parent
							
								
									40dee4b9d2
								
							
						
					
					
						commit
						75f3afdc84
					
				|  | @ -474,6 +474,8 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site')); | |||
|       --> | ||||
| <?php | ||||
| 	foreach($GLOBALS['EXT_CONF'] as $extname=>$extconf) { | ||||
| 		if($this->hasHook('processConfig')) | ||||
| 			$extconf = $this->callHook('processConfig', $extname, $extconf); | ||||
| 		if($extconf['config']) { | ||||
| 		$this->showRawConfigHeadline("<a name=\"".$extname."\"></a>".$extconf['title']); | ||||
| 		foreach($extconf['config'] as $confkey=>$conf) { | ||||
|  | @ -565,11 +567,14 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site')); | |||
| 									} | ||||
| 								} | ||||
| 								break; | ||||
| 							case 'hook': | ||||
| 								echo $this->callHook('showConfig', $confkey, $extname, $extconf); | ||||
| 								break; | ||||
| 							default: | ||||
| 								$this->showTextField("extensions[".$extname."][".$confkey."]", isset($settings->_extensions[$extname][$confkey]) ? $settings->_extensions[$extname][$confkey] : '', isset($conf['type']) ? $conf['type'] : '', isset($conf['placeholder']) ? $conf['placeholder'] : ''); | ||||
| 						} | ||||
| 						$html = ob_get_clean(); | ||||
| 			$this->showConfigPlain($conf['title'], isset($conf['help']) ? $conf['help'] : '', $html); | ||||
| 						$this->showConfigPlain($conf['title'], isset($conf['help']) ? $conf['help'] : '', $html); | ||||
| 					} | ||||
| 		} | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann