Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
ec9e2b5f
Commit
ec9e2b5f
authored
Jul 13, 2014
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2301601
by joshi.rohit100: Remove drupal_validate_form() as it is deprecated.
parent
16102e80
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/includes/form.inc
+0
-12
0 additions, 12 deletions
core/includes/form.inc
core/modules/system/tests/modules/form_test/form_test.module
+1
-1
1 addition, 1 deletion
core/modules/system/tests/modules/form_test/form_test.module
with
1 addition
and
13 deletions
core/includes/form.inc
+
0
−
12
View file @
ec9e2b5f
...
@@ -263,18 +263,6 @@ function drupal_process_form($form_id, &$form, &$form_state) {
...
@@ -263,18 +263,6 @@ function drupal_process_form($form_id, &$form, &$form_state) {
\Drupal
::
formBuilder
()
->
processForm
(
$form_id
,
$form
,
$form_state
);
\Drupal
::
formBuilder
()
->
processForm
(
$form_id
,
$form
,
$form_state
);
}
}
/**
* Validates user-submitted form data in the $form_state array.
*
* @deprecated in Drupal 8.x-dev, will be removed before Drupal 8.0.
* Use \Drupal::formBuilder()->validateForm().
*
* @see \Drupal\Core\Form\FormValidatorInterface::validateForm().
*/
function
drupal_validate_form
(
$form_id
,
&
$form
,
&
$form_state
)
{
\Drupal
::
formBuilder
()
->
validateForm
(
$form_id
,
$form
,
$form_state
);
}
/**
/**
* Redirects the user to a URL after a form has been processed.
* Redirects the user to a URL after a form has been processed.
*
*
...
...
This diff is collapsed.
Click to expand it.
core/modules/system/tests/modules/form_test/form_test.module
+
1
−
1
View file @
ec9e2b5f
...
@@ -81,7 +81,7 @@ function system_form_form_test_alter_form_alter(&$form, &$form_state) {
...
@@ -81,7 +81,7 @@ function system_form_form_test_alter_form_alter(&$form, &$form_state) {
}
}
/**
/**
* Form builder for testing
d
rupal
_validate_f
orm().
* Form builder for testing
\D
rupal
\Core\Form\FormValidatorInterface::validateF
orm().
*
*
* Serves for testing form processing and alterations by form validation
* Serves for testing form processing and alterations by form validation
* handlers, especially for the case of a validation error:
* handlers, especially for the case of a validation error:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment