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
a8bfbe76
Commit
a8bfbe76
authored
Aug 28, 2001
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- common.inc: + added a form_password() function
parent
4d3da2bf
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
includes/common.inc
+4
-0
4 additions, 0 deletions
includes/common.inc
with
4 additions
and
0 deletions
includes/common.inc
+
4
−
0
View file @
a8bfbe76
...
@@ -258,6 +258,10 @@ function form_textfield($title, $name, $value, $size, $maxlength, $description =
...
@@ -258,6 +258,10 @@ function form_textfield($title, $name, $value, $size, $maxlength, $description =
return
form_item
(
$title
,
"<input maxlength=
\"
$maxlength
\"
name=
\"
edit[
$name
]
\"
size=
\"
$size
\"
value=
\"
"
.
check_form
(
$value
)
.
"
\"
/>"
,
$description
);
return
form_item
(
$title
,
"<input maxlength=
\"
$maxlength
\"
name=
\"
edit[
$name
]
\"
size=
\"
$size
\"
value=
\"
"
.
check_form
(
$value
)
.
"
\"
/>"
,
$description
);
}
}
function
form_password
(
$title
,
$name
,
$value
,
$size
,
$maxlength
,
$description
=
0
)
{
return
form_item
(
$title
,
"<input type=
\"
password
\"
maxlength=
\"
$maxlength
\"
name=
\"
edit[
$name
]
\"
size=
\"
$size
\"
value=
\"
"
.
check_form
(
$value
)
.
"
\"
/>"
,
$description
);
}
function
form_textarea
(
$title
,
$name
,
$value
,
$cols
,
$rows
,
$description
=
0
)
{
function
form_textarea
(
$title
,
$name
,
$value
,
$cols
,
$rows
,
$description
=
0
)
{
return
form_item
(
$title
,
"<textarea wrap=
\"
virtual
\"
cols=
\"
$cols
\"
rows=
\"
$rows
\"
name=
\"
edit[
$name
]
\"
>"
.
check_form
(
$value
)
.
"</textarea>"
,
$description
);
return
form_item
(
$title
,
"<textarea wrap=
\"
virtual
\"
cols=
\"
$cols
\"
rows=
\"
$rows
\"
name=
\"
edit[
$name
]
\"
>"
.
check_form
(
$value
)
.
"</textarea>"
,
$description
);
}
}
...
...
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