Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Notice below, the "/label" and its if statement are moved before the line:
$output .= $value . "<br />\n";
This allows you to make the title disappear using style.css.
-------------
// custom form elements
function mollio_form_element($title, $value, $description = NULL, $id = NULL, $required = FALSE, $error = FALSE) {
$output = '';
$required = $required ? '<span class="req">*</span>' : '';
if ($title) {
if ($id) {
$output .= "<label for=\"$id\"><b>$required$title:</b>";
}
else {
$output .= "<label><b>$required$title:</b>";
}
}
if ($title) {
$output .= '</label>' . "\n";
}
$output .= $value . "<br />\n";
if ($description) {
$output .= "<div class=\"description\">$description</div>\n";
}
return $output;
}
Comments
Comment #1
rkerr CreditAttribution: rkerr commentedJust being consistent with the original Mollio templates.