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
328f1723
Commit
328f1723
authored
Jul 7, 2010
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#717576
by mr.baileys: incorrect param name in text_field_widget_form().
parent
803e63de
No related branches found
No related tags found
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
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/field/modules/text/text.module
+3
-4
3 additions, 4 deletions
modules/field/modules/text/text.module
with
3 additions
and
4 deletions
modules/field/modules/text/text.module
+
3
−
4
View file @
328f1723
...
@@ -513,14 +513,13 @@ function text_field_widget_settings_form($field, $instance) {
...
@@ -513,14 +513,13 @@ function text_field_widget_settings_form($field, $instance) {
/**
/**
* Implements hook_field_widget_form().
* Implements hook_field_widget_form().
*/
*/
function
text_field_widget_form
(
&
$form
,
&
$form_state
,
$field
,
$instance
,
$langcode
,
$items
,
$delta
,
$base
)
{
function
text_field_widget_form
(
&
$form
,
&
$form_state
,
$field
,
$instance
,
$langcode
,
$items
,
$delta
,
$element
)
{
$element
=
$base
;
$summary_widget
=
array
();
$summary_widget
=
array
();
$main_widget
=
array
();
$main_widget
=
array
();
switch
(
$instance
[
'widget'
][
'type'
])
{
switch
(
$instance
[
'widget'
][
'type'
])
{
case
'text_textfield'
:
case
'text_textfield'
:
$main_widget
=
$
base
+
array
(
$main_widget
=
$
element
+
array
(
'#type'
=>
'textfield'
,
'#type'
=>
'textfield'
,
'#default_value'
=>
isset
(
$items
[
$delta
][
'value'
])
?
$items
[
$delta
][
'value'
]
:
NULL
,
'#default_value'
=>
isset
(
$items
[
$delta
][
'value'
])
?
$items
[
$delta
][
'value'
]
:
NULL
,
'#size'
=>
$instance
[
'widget'
][
'settings'
][
'size'
],
'#size'
=>
$instance
[
'widget'
][
'settings'
][
'size'
],
...
@@ -548,7 +547,7 @@ function text_field_widget_form(&$form, &$form_state, $field, $instance, $langco
...
@@ -548,7 +547,7 @@ function text_field_widget_form(&$form, &$form_state, $field, $instance, $langco
// Fall through to the next case.
// Fall through to the next case.
case
'text_textarea'
:
case
'text_textarea'
:
$main_widget
=
$
base
+
array
(
$main_widget
=
$
element
+
array
(
'#type'
=>
'textarea'
,
'#type'
=>
'textarea'
,
'#default_value'
=>
isset
(
$items
[
$delta
][
'value'
])
?
$items
[
$delta
][
'value'
]
:
NULL
,
'#default_value'
=>
isset
(
$items
[
$delta
][
'value'
])
?
$items
[
$delta
][
'value'
]
:
NULL
,
'#rows'
=>
$instance
[
'widget'
][
'settings'
][
'rows'
],
'#rows'
=>
$instance
[
'widget'
][
'settings'
][
'rows'
],
...
...
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