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
a8bfbe76
Commit
a8bfbe76
authored
Aug 28, 2001
by
Dries
Browse files
- common.inc: + added a form_password() function
parent
4d3da2bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
a8bfbe76
...
...
@@ -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
);
}
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
)
{
return
form_item
(
$title
,
"<textarea wrap=
\"
virtual
\"
cols=
\"
$cols
\"
rows=
\"
$rows
\"
name=
\"
edit[
$name
]
\"
>"
.
check_form
(
$value
)
.
"</textarea>"
,
$description
);
}
...
...
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