diff options
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 3d933194e..91996d2b8 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -607,43 +607,6 @@ function theme_node($node, $teaser = FALSE, $page = FALSE) { } /** - * 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 = '<div class="form-item">'."\n"; - $required = $required ? '<span class="form-required" title="'. t('This field is required.') .'">*</span>' : ''; - - if ($title) { - if ($id) { - $output .= ' <label for="'. form_clean_id($id) .'">'. t('%title: %required', array('%title' => $title, '%required' => $required)) . "</label>\n"; - } - else { - $output .= ' <label>'. t('%title: %required', array('%title' => $title, '%required' => $required)) . "</label>\n"; - } - } - - $output .= " $value\n"; - - if ($description) { - $output .= ' <div class="description">'. $description ."</div>\n"; - } - - $output .= "</div>\n"; - - return $output; -} - -/** * Return a themed submenu, typically displayed under the tabs. * * @param $links |