theme_button($element)theme_button($variables)Theme a button form element.
$variables An associative array containing:
A themed HTML string representing the form element.
7/includes/form.inc, line 2676
<?php
function theme_button($variables) {
$element = $variables['element'];
$element['#attributes']['class'][] = 'form-' . $element['#button_type'];
return '<input type="submit" ' . (empty($element['#name']) ? '' : 'name="' . $element['#name'] . '" ') . 'id="' . $element['#id'] . '" value="' . check_plain($element['#value']) . '" ' . drupal_attributes($element['#attributes']) . " />\n";
}
?>