From 6411e09dc9cae887c99db3e8c5d49f8d69ca8f01 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Tue, 2 May 2006 09:26:33 +0000 Subject: #56508 by chx (modified), Remove notices from form.inc and move theme_form_element from theme.inc to form.inc. --- includes/theme.inc | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'includes/theme.inc') diff --git a/includes/theme.inc b/includes/theme.inc index 3d933194e..91996d2b8 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -606,43 +606,6 @@ function theme_node($node, $teaser = FALSE, $page = FALSE) { return $output; } -/** - * Return a themed form element. - * - * @param $title the form element's title - * @param $value the form element's data - * @param $description the form element's description or explanation - * @param $id the form element's ID used by the <label> tag - * @param $required a boolean to indicate whether this is a required field or not - * @param $error a string with an error message filed against this form element - * - * @return a string representing the form element - */ -function theme_form_element($title, $value, $description = NULL, $id = NULL, $required = FALSE, $error = FALSE) { - - $output = '
'."\n"; - $required = $required ? '*' : ''; - - if ($title) { - if ($id) { - $output .= ' \n"; - } - else { - $output .= ' \n"; - } - } - - $output .= " $value\n"; - - if ($description) { - $output .= '
'. $description ."
\n"; - } - - $output .= "
\n"; - - return $output; -} - /** * Return a themed submenu, typically displayed under the tabs. * -- cgit v1.2.3