Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
2353d141
Commit
2353d141
authored
Nov 02, 2009
by
webchick
Browse files
#211015
follow-up by sun: Don't hard-code #theme for system_settings_form().
parent
6afea0a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/system/system.admin.inc
View file @
2353d141
...
...
@@ -2395,21 +2395,6 @@ function theme_system_modules_uninstall($variables) {
return
$output
;
}
/**
* Theme function for the system settings form.
*
* By default this does not alter the appearance of a form at all,
* but is provided as a convenience for themers.
*
* @param $variables
* An associative array containing:
* - form: An associative array containing the structure of the form.
* @ingroup themeable
*/
function
theme_system_settings_form
(
$variables
)
{
return
drupal_render_children
(
$variables
[
'form'
]);
}
/**
* Theme function for the system themes form.
*
...
...
modules/system/system.module
View file @
2353d141
...
...
@@ -140,7 +140,6 @@ function system_theme() {
),
'system_settings_form'
=>
array
(
'render element'
=>
'form'
,
'file'
=>
'system.admin.inc'
,
),
'confirm_form'
=>
array
(
'render element'
=>
'form'
,
...
...
@@ -2455,7 +2454,10 @@ function system_settings_form($form, $automatic_defaults = TRUE) {
drupal_set_message
(
t
(
'The settings have not been saved because of the errors.'
),
'error'
);
}
$form
[
'#submit'
][]
=
'system_settings_form_submit'
;
$form
[
'#theme'
]
=
'system_settings_form'
;
// By default, render the form using theme_system_settings_form().
if
(
!
isset
(
$form
[
'#theme'
]))
{
$form
[
'#theme'
]
=
'system_settings_form'
;
}
return
$form
;
}
...
...
@@ -3528,6 +3530,21 @@ function theme_confirm_form($variables) {
return
drupal_render_children
(
$variables
[
'form'
]);
}
/**
* Theme function for the system settings form.
*
* By default this does not alter the appearance of a form at all,
* but is provided as a convenience for themers.
*
* @param $variables
* An associative array containing:
* - form: An associative array containing the structure of the form.
* @ingroup themeable
*/
function
theme_system_settings_form
(
$variables
)
{
return
drupal_render_children
(
$variables
[
'form'
]);
}
/**
* Template variable preprocessor for contextual links.
*/
...
...
Write
Preview
Supports
Markdown
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