diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index ae93fd605..e8539f3ca 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -522,7 +522,7 @@ function theme_node($node, $teaser = FALSE, $page = FALSE) { function theme_form_element($title, $value, $description = NULL, $id = NULL, $required = FALSE, $error = FALSE) { $output = "<div class=\"form-item\">\n"; - $required = $required ? theme('mark') : ''; + $required = $required ? theme('mark', 'required') : ''; if ($title) { if ($id) { @@ -698,10 +698,12 @@ function theme_block($block) { * Return a themed marker, useful for marking new comments or required form * elements. * + * @param $type + * Type of marker to return: 'new' or 'required' * @return * A string containing the marker. */ -function theme_mark() { +function theme_mark($type = 'new') { return '<span class="marker">*</span>'; } |