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
75897e80
Commit
75897e80
authored
May 15, 2007
by
Dries
Browse files
- Patch
#138706
by Eaton: 2 form API fixes.
parent
8ba14fa4
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
75897e80
...
...
@@ -2351,12 +2351,13 @@ function node_delete_confirm($node) {
/**
* Execute node deletion
*/
function
node_delete_confirm_submit
(
$form_
id
,
$form_
values
)
{
function
node_delete_confirm_submit
(
$form_
values
,
$form
,
&
$form_
state
)
{
if
(
$form_values
[
'confirm'
])
{
node_delete
(
$form_values
[
'nid'
]);
}
return
'<front>'
;
$form_state
[
'redirect'
]
=
'<front>'
;
return
;
}
/**
...
...
modules/search/search.module
View file @
75897e80
...
...
@@ -1045,7 +1045,7 @@ function search_form($action = '', $keys = '', $type = NULL, $prompt = NULL) {
* value for the basic search form.
*/
function
search_form_validate
(
$form_values
,
$form
,
&
$form_state
)
{
form_set_value
(
$form
[
'basic'
][
'inline'
][
'processed_keys'
],
trim
(
$form_values
[
'keys'
],
$form_state
)
)
;
form_set_value
(
$form
[
'basic'
][
'inline'
][
'processed_keys'
],
trim
(
$form_values
[
'keys'
]
)
,
$form_state
);
}
/**
...
...
@@ -1089,6 +1089,7 @@ function search_box($form_id) {
* Process a block search form submission.
*/
function
search_box_form_submit
(
$form_values
,
$form
,
&
$form_state
)
{
$form_id
=
$form
[
'form_id'
][
'#value'
];
$form_state
[
'redirect'
]
=
'search/node/'
.
trim
(
$form_values
[
$form_id
.
'_keys'
]);
return
;
}
...
...
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