Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
13f73f69
Commit
13f73f69
authored
Mar 23, 2012
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#1496638
by ksenzee: roll back system_settings_form_submit().
parent
bf1ed668
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
core/modules/system/system.module
core/modules/system/system.module
+0
-15
No files found.
core/modules/system/system.module
View file @
13f73f69
...
...
@@ -2781,27 +2781,12 @@ function system_settings_form_submit($form, &$form_state) {
// Exclude unnecessary elements.
form_state_values_clean
(
$form_state
);
$config_objects
=
array
();
foreach
(
$form_state
[
'values'
]
as
$key
=>
$value
)
{
if
(
isset
(
$form_state
[
'config'
][
$key
]))
{
$config_name
=
$form_state
[
'config'
][
$key
][
'name'
];
$config_key
=
$form_state
[
'config'
][
$key
][
'path'
];
if
(
empty
(
$config_objects
[
$config_name
]))
{
$config_objects
[
$config_name
]
=
config
(
$config_name
);
}
if
(
!
empty
(
$config_objects
[
$config_name
]))
{
$config_objects
[
$config_name
]
->
set
(
$config_key
,
$value
);
continue
;
}
}
if
(
is_array
(
$value
)
&&
isset
(
$form_state
[
'values'
][
'array_filter'
]))
{
$value
=
array_keys
(
array_filter
(
$value
));
}
variable_set
(
$key
,
$value
);
}
foreach
(
$config_objects
as
$config
)
{
$config
->
save
();
}
drupal_set_message
(
t
(
'The configuration options have been saved.'
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment