Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8d48ee17
Commit
8d48ee17
authored
Apr 25, 2006
by
Gerhard Killesreiter
Browse files
#60338
, better name for #form_submitted, patch by chx
parent
83cd31cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
includes/form.inc
View file @
8d48ee17
...
...
@@ -375,9 +375,9 @@ function form_builder($form_id, $form) {
}
}
}
if
(
isset
(
$form
[
'#
form_submitted
'
])
&&
isset
(
$_POST
[
$form
[
'#name'
]]))
{
if
(
isset
(
$form
[
'#
executes_submit_callback
'
])
&&
isset
(
$_POST
[
$form
[
'#name'
]]))
{
if
(
$_POST
[
$form
[
'#name'
]]
==
$form
[
'#value'
])
{
$form_submitted
=
$form_submitted
||
$form
[
'#
form_submitted
'
];
$form_submitted
=
$form_submitted
||
$form
[
'#
executes_submit_callback
'
];
}
}
}
...
...
modules/system.module
View file @
8d48ee17
...
...
@@ -62,8 +62,8 @@ function system_elements() {
// Inputs
$type
[
'checkbox'
]
=
array
(
'#input'
=>
TRUE
,
'#return_value'
=>
1
);
$type
[
'submit'
]
=
array
(
'#input'
=>
TRUE
,
'#name'
=>
'op'
,
'#button_type'
=>
'submit'
,
'#
form_submitted
'
=>
TRUE
);
$type
[
'button'
]
=
array
(
'#input'
=>
TRUE
,
'#name'
=>
'op'
,
'#button_type'
=>
'submit'
,
'#
form_submitted
'
=>
FALSE
);
$type
[
'submit'
]
=
array
(
'#input'
=>
TRUE
,
'#name'
=>
'op'
,
'#button_type'
=>
'submit'
,
'#
executes_submit_callback
'
=>
TRUE
);
$type
[
'button'
]
=
array
(
'#input'
=>
TRUE
,
'#name'
=>
'op'
,
'#button_type'
=>
'submit'
,
'#
executes_submit_callback
'
=>
FALSE
);
$type
[
'textfield'
]
=
array
(
'#input'
=>
TRUE
,
'#size'
=>
60
,
'#maxlength'
=>
128
,
'#autocomplete_path'
=>
FALSE
);
$type
[
'password'
]
=
array
(
'#input'
=>
TRUE
,
'#size'
=>
30
);
$type
[
'password_confirm'
]
=
array
(
'#input'
=>
TRUE
,
'#process'
=>
array
(
'expand_password_confirm'
=>
array
()));
...
...
modules/system/system.module
View file @
8d48ee17
...
...
@@ -62,8 +62,8 @@ function system_elements() {
// Inputs
$type
[
'checkbox'
]
=
array
(
'#input'
=>
TRUE
,
'#return_value'
=>
1
);
$type
[
'submit'
]
=
array
(
'#input'
=>
TRUE
,
'#name'
=>
'op'
,
'#button_type'
=>
'submit'
,
'#
form_submitted
'
=>
TRUE
);
$type
[
'button'
]
=
array
(
'#input'
=>
TRUE
,
'#name'
=>
'op'
,
'#button_type'
=>
'submit'
,
'#
form_submitted
'
=>
FALSE
);
$type
[
'submit'
]
=
array
(
'#input'
=>
TRUE
,
'#name'
=>
'op'
,
'#button_type'
=>
'submit'
,
'#
executes_submit_callback
'
=>
TRUE
);
$type
[
'button'
]
=
array
(
'#input'
=>
TRUE
,
'#name'
=>
'op'
,
'#button_type'
=>
'submit'
,
'#
executes_submit_callback
'
=>
FALSE
);
$type
[
'textfield'
]
=
array
(
'#input'
=>
TRUE
,
'#size'
=>
60
,
'#maxlength'
=>
128
,
'#autocomplete_path'
=>
FALSE
);
$type
[
'password'
]
=
array
(
'#input'
=>
TRUE
,
'#size'
=>
30
);
$type
[
'password_confirm'
]
=
array
(
'#input'
=>
TRUE
,
'#process'
=>
array
(
'expand_password_confirm'
=>
array
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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