allow to dynamically change self service settings

This commit is contained in:
Roland Gruber 2012-04-22 19:32:48 +00:00
parent a9bf201212
commit 9276e3008a
2 changed files with 2 additions and 2 deletions

View File

@ -1298,7 +1298,7 @@ abstract class baseModule {
* @param array $options hash array (option name => value) that contains the input. The option values are all arrays containing one or more elements.
* @return array error messages
*/
public function checkSelfServiceSettings($options) {
public function checkSelfServiceSettings(&$options) {
// needs to be implemented by the subclasses, if needed
return array();
}

View File

@ -257,7 +257,7 @@ function getSelfServiceSettings($scope, $profile) {
* @param array $options hash array containing all options (name => array(...))
* @return array list of error messages
*/
function checkSelfServiceSettings($scope, $options) {
function checkSelfServiceSettings($scope, &$options) {
$return = array();
$modules = getAvailableModules($scope);
for ($i = 0; $i < sizeof($modules); $i++) {