form_submit

Definition

form_submit($value, $name = 'op', $attributes = NULL)
drupal/includes/common.inc, line 1409

Description

Format a form submit button.

Parameters

$value Both the label for the button, and the value passed to the target page when this button is clicked.

$name The internal name used to refer to the button.

$attributes An associative array of HTML attributes to add to the form item.

Return value

A themed HTML string representing the button.

Related topics

Namesort iconDescription
Form generationFunctions to enable output of HTML forms and form elements.
Input validationFunctions to validate user input.

Code

function form_submit($value, $name = 'op', $attributes = NULL) {
  return form_button($value, $name, 'submit', $attributes);
}