diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-05-02 09:26:33 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-05-02 09:26:33 +0000 |
commit | 6411e09dc9cae887c99db3e8c5d49f8d69ca8f01 (patch) | |
tree | 07b5e468ab1c06ae847da0d60f1012dd8df439b6 /includes/theme.inc | |
parent | 130c1492c5ff2fe4fd6d0e6fa8c4eb9b55b1311d (diff) | |
download | brdo-6411e09dc9cae887c99db3e8c5d49f8d69ca8f01.tar.gz brdo-6411e09dc9cae887c99db3e8c5d49f8d69ca8f01.tar.bz2 |
#56508 by chx (modified), Remove notices from form.inc and move theme_form_element from theme.inc to form.inc.
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 |