Skip navigation
Help

theme_submit

6 form.inc theme_submit($element)
7 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

drupal/includes/form.inc, line 3573

Code

function theme_submit($variables) {
  return theme('button', $variables['element']);
}