| 5 form.inc | theme_submit($element) |
| 6 form.inc | theme_submit( |
| 7 form.inc | theme_submit($variables) |
| 8 form.inc | theme_submit($variables) |
Returns HTML for a submit button form element.
Parameters
$variables: An associative array containing:
- element: An associative array containing the properties of the element. Properties used: #attributes, #button_type, #name, #value.
Related topics
File
- includes/
form.inc, line 3699 - Functions for form and batch generation and processing.
Code
function theme_submit($variables) {
return theme('button', $variables['element']);
}
Login or register to post comments
Comments
I can't seem to override this
I can't seem to override this in my template.php file .. seems that it's never called.
I haven't had any problems overriding other theme functions in Drupal 7.
EDIT: I can override theme_button()