diff -ru typo3_orig/sysext/setup/mod/index.php typo3/sysext/setup/mod/index.php
--- typo3_orig/sysext/setup/mod/index.php 2010-12-16 14:17:11.000000000 +0100
+++ typo3/sysext/setup/mod/index.php 2010-12-16 19:01:53.000000000 +0100
@@ -302,6 +302,15 @@
);
$this->doc->table_TR = '
';
$this->doc->table_TABLE = '';
+
+ // Hook for changing the init settings form
+ if (!empty ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/setup/mod/index.php']['initSettingsForm'])
+ && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/setup/mod/index.php']['initSettingsForm'])) {
+ foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/setup/mod/index.php']['initSettingsForm'] as $funcRef) {
+ $params = array();
+ t3lib_div::callUserFunction($funcRef, $params, $this);
+ }
+ }
}
/**
@@ -341,7 +350,7 @@
$LANG->getLL('enableInstallTool.file'),
t3lib_FlashMessage::OK
);
- }
+ }
$this->content .= $flashMessage->render();
}
if (t3lib_div::_POST('createInstallToolEnableFile')) {
@@ -362,9 +371,9 @@
$LANG->getLL('enableInstallTool.file'),
t3lib_FlashMessage::ERROR
);
- }
+ }
$this->content .= $flashMessage->render();
- }
+ }
}
if ($this->languageUpdate) {
@@ -390,6 +399,17 @@
$this->content .= $this->doc->header($LANG->getLL('UserSettings').' - '.$BE_USER->user['realName'].' ['.$BE_USER->user['username'].']');
+ // Hook for adding a flash message
+ if (!empty ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/setup/mod/index.php']['additionalFlashMessages'])
+ && is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/setup/mod/index.php']['additionalFlashMessages'])) {
+ foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/setup/mod/index.php']['additionalFlashMessages'] as $funcRef) {
+ $params = array(
+ 'lang' => $LANG
+ );
+ t3lib_div::callUserFunction($funcRef, $params, $this);
+ }
+ }
+
// show if setup was saved
if ($this->setupIsUpdated) {
$flashMessage = t3lib_div::makeInstance(