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/api.elmsln.org/includes/bootstrap.inc).
cis7 form.inc theme_button($variables)
cle7 form.inc theme_button($variables)
elmsmedia7 form.inc theme_button($variables)
icor7 form.inc theme_button($variables)
meedjum_blog7 form.inc theme_button($variables)
mooc7 form.inc theme_button($variables)

Returns HTML for a 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

2 theme calls to theme_button()
theme_custom_formatters_export_ui_form_preview in sites/all/modules/local_contrib/custom_formatters/plugins/export_ui/custom_formatters.inc
Theme for Preview form.
theme_submit in includes/form.inc
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/ajax.inc
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/coder_review.inc
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/content_type_groups.admin.inc
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/jump-menu.inc
Generate a jump menu form.

... See full list

File

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

Code

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 | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.