Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
1356c256
Commit
1356c256
authored
Jun 26, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1924990
by tim.plunkett:Remove system_config_form().
parent
356dc8ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
58 deletions
+0
-58
core/modules/system/system.module
core/modules/system/system.module
+0
-58
No files found.
core/modules/system/system.module
View file @
1356c256
...
@@ -3193,64 +3193,6 @@ function system_default_region($theme) {
...
@@ -3193,64 +3193,6 @@ function system_default_region($theme) {
return
isset
(
$regions
[
0
])
?
$regions
[
0
]
:
''
;
return
isset
(
$regions
[
0
])
?
$regions
[
0
]
:
''
;
}
}
/**
* Adds default behavior to a configuration form.
*
* This includes a consistent 'Save configuration' button, theme definition,
* and submit handler.
*
* @param array $form
* An associative array containing the structure of the form.
* @param array $form_state
* Reference to an associative array containing state of the form.
*
* @return array
* The form structure.
*
* @see system_config_form_submit()
* @ingroup forms
*/
function
system_config_form
(
$form
,
&
$form_state
)
{
$form
[
'actions'
][
'#type'
]
=
'actions'
;
$form
[
'actions'
][
'submit'
]
=
array
(
'#type'
=>
'submit'
,
'#value'
=>
t
(
'Save configuration'
),
'#button_type'
=>
'primary'
,
);
// Add system_config_form_submit() to output a consistent confirmation
// message. Since this prevents drupal_prepare_form() from adding the form's
// primary submit handler, do that first, using the same logic.
if
(
!
isset
(
$form
[
'#submit'
]))
{
$form
[
'#submit'
]
=
array
();
if
(
isset
(
$form_state
[
'build_info'
][
'callback_object'
]))
{
$form
[
'#submit'
][]
=
array
(
$form_state
[
'build_info'
][
'callback_object'
],
'submitForm'
);
}
elseif
(
function_exists
(
$form_state
[
'build_info'
][
'form_id'
]
.
'_submit'
))
{
$form
[
'#submit'
][]
=
$form_state
[
'build_info'
][
'form_id'
]
.
'_submit'
;
}
elseif
(
isset
(
$form_state
[
'build_info'
][
'base_form_id'
])
&&
function_exists
(
$form_state
[
'build_info'
][
'base_form_id'
]
.
'_submit'
))
{
$form
[
'#submit'
][]
=
$form_state
[
'build_info'
][
'base_form_id'
]
.
'_submit'
;
}
}
$form
[
'#submit'
][]
=
'system_config_form_submit'
;
// By default, render the form using theme_system_config_form().
if
(
!
isset
(
$form
[
'#theme'
]))
{
$form
[
'#theme'
]
=
'system_config_form'
;
}
return
$form
;
}
/**
* Form submission handler for system_config_form().
*
* @see system_config_form()
*/
function
system_config_form_submit
(
$form
,
&
$form_state
)
{
drupal_set_message
(
t
(
'The configuration options have been saved.'
));
}
/**
/**
* Generates a form array for a confirmation form.
* Generates a form array for a confirmation form.
*
*
...
...
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