Selaa lähdekoodia

Inverted integration hooks menu and miscellaneous

Signed-off-by: emanuele <[email protected]>
emanuele 12 vuotta sitten
vanhempi
commit
b6c5c354d4
2 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 1 1
      Sources/Admin.php
  2. 5 3
      Sources/ManageSettings.php

+ 1 - 1
Sources/Admin.php

@@ -181,8 +181,8 @@ function AdminMain()
 					'function' => 'ModifyModSettings',
 					'icon' => 'modifications.png',
 					'subsections' => array(
-						'hooks' => array($txt['hooks_title_list']),
 						'general' => array($txt['mods_cat_modifications_misc']),
+						'hooks' => array($txt['hooks_title_list']),
 						// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:
 						// 'shout' => array($txt['shout']),
 						// Note the comma!! The setting with automatically appear with the first mod to be added.

+ 5 - 3
Sources/ManageSettings.php

@@ -151,24 +151,26 @@ function ModifyModSettings()
 	$context['page_title'] = $txt['admin_modifications'];
 
 	$subActions = array(
-		'hooks' => 'list_integration_hooks',
 		'general' => 'ModifyGeneralModSettings',
+		'hooks' => 'list_integration_hooks',
 		// Mod authors, once again, if you have a whole section to add do it AFTER this line, and keep a comma at the end.
 	);
 
 	// Make it easier for mods to add new areas.
 	call_integration_hook('integrate_modify_modifications', array(&$subActions));
 
+	loadGeneralSettingParameters($subActions, 'general');
+
 	// Load up all the tabs...
 	$context[$context['admin_menu_name']]['tab_data'] = array(
 		'title' => $txt['admin_modifications'],
 		'help' => 'modsettings',
 		'description' => $txt['modification_settings_desc'],
 		'tabs' => array(
-			'hooks' => array(
-			),
 			'general' => array(
 			),
+			'hooks' => array(
+			),
 		),
 	);