form_submit

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

57 calls to form_submit()

File

includes/common.inc, line 1409
Common functions that many Drupal modules will need to reference.

Code

function form_submit($value, $name = 'op', $attributes = NULL) {
  return form_button($value, $name, 'submit', $attributes);
}
Login or register to post comments