summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index ae284d34d..6dfff30bd 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -145,6 +145,19 @@ function _theme_table_cell($cell, $header = 0) {
return $output;
}
+/**
+ Returns themed table.
+
+ @param $title the form element's title
+ @param $value the form element's data
+ @param $description the form element's description or explanation
+
+ @return a string contraining the \a node output.
+**/
+
+function theme_form_element($title, $value, $description = 0) {
+ return "<div class=\"form-item\">". ($title ? "<label>$title:</label>" : "") . $value . ($description ? "<div class=\"description\">$description</div>" : "") ."</div>\n";
+}
/**
Returns themed table.