function theme_button


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 theme_button($variables)
cle7 theme_button($variables)
elmsmedia7 theme_button($variables)
icor7 theme_button($variables)
meedjum_blog7 theme_button($variables)
mooc7 theme_button($variables)

Returns HTML for a button form element.


$variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #attributes, #button_type, #name, #value.

Related topics

2 theme calls to theme_button()
theme_custom_formatters_export_ui_form_preview in sites/all/modules/local_contrib/custom_formatters/plugins/export_ui/
Theme for Preview form.
theme_submit in includes/
Returns HTML for a submit button form element.
43 string references to the theme hook from theme_button()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

ajax_pre_render_element in includes/
Adds Ajax information about an element to communicate with JavaScript.
coder_review_custom_formatters_form_alter_alter in sites/all/modules/local_contrib/custom_formatters/includes/
Implements hook_custom_formatters_form_alter_alter() on behalf of coder_review.module.
content_type_groups_group_form in sites/all/modules/local_contrib/content_type_groups/
Form builder; Returns form for adding a new content type group.
ctools_ajax_sample_ajax_button_form in sites/all/modules/ulmus/ctools/ctools_ajax_sample/ctools_ajax_sample.module
Provide a form for an example ajax modal button
ctools_jump_menu in sites/all/modules/ulmus/ctools/includes/
Generate a jump menu form.

... See full list


includes/, line 3793
Functions for form and batch generation and processing.


function theme_button($variables) {
  $element = $variables['element'];
  $element['#attributes']['type'] = 'submit';
  element_set_attributes($element, array('id', 'name', 'value'));

  $element['#attributes']['class'][] = 'form-' . $element['#button_type'];
  if (!empty($element['#attributes']['disabled'])) {
    $element['#attributes']['class'][] = 'form-button-disabled';

  return '<input' . drupal_attributes($element['#attributes']) . ' />';



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.