allow to dynamically change self service settings
This commit is contained in:
parent
a9bf201212
commit
9276e3008a
|
@ -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.
|
* @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
|
* @return array error messages
|
||||||
*/
|
*/
|
||||||
public function checkSelfServiceSettings($options) {
|
public function checkSelfServiceSettings(&$options) {
|
||||||
// needs to be implemented by the subclasses, if needed
|
// needs to be implemented by the subclasses, if needed
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
|
@ -257,7 +257,7 @@ function getSelfServiceSettings($scope, $profile) {
|
||||||
* @param array $options hash array containing all options (name => array(...))
|
* @param array $options hash array containing all options (name => array(...))
|
||||||
* @return array list of error messages
|
* @return array list of error messages
|
||||||
*/
|
*/
|
||||||
function checkSelfServiceSettings($scope, $options) {
|
function checkSelfServiceSettings($scope, &$options) {
|
||||||
$return = array();
|
$return = array();
|
||||||
$modules = getAvailableModules($scope);
|
$modules = getAvailableModules($scope);
|
||||||
for ($i = 0; $i < sizeof($modules); $i++) {
|
for ($i = 0; $i < sizeof($modules); $i++) {
|
||||||
|
|
Loading…
Reference in New Issue