Named Function Correctly

This commit is contained in:
gnomus 2015-08-16 21:05:27 +02:00
parent 73197995d7
commit a67237d0ef
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ function form_text($name, $label, $value, $disabled = false) {
/**
* Rendert ein Formular-Emailfeld
*/
function form_text($name, $label, $value, $disabled = false) {
function form_email($name, $label, $value, $disabled = false) {
$disabled = $disabled ? ' disabled="disabled"' : '';
return form_element($label, '<input class="form-control" id="form_' . $name . '" type="email" name="' . $name . '" value="' . htmlspecialchars($value) . '" ' . $disabled . '/>', 'form_' . $name);
}