function theme_imagebutton in Elements 5
Theme the imagebutton form element.
Parameters
array $element:
Return value
string HTML representation of the imagebutton.
File
- ./
elements.module, line 30
Code
function theme_imagebutton($element) {
return '<input type="image" class="form-' . $element['#button_type'] . '" name="' . $element['#name'] . '" value="' . check_plain($element['#default_value']) . '" ' . drupal_attributes($element['#attributes']) . ' src="' . $element['#image'] . '" alt="' . $element['#title'] . '" title="' . $element['#title'] . "\" />\n";
}