You are here

function theme_no_submit_button in Taxonomy Manager 6.2

Same name and namespace in other branches
  1. 5 taxonomy_manager.module \theme_no_submit_button()
  2. 6 taxonomy_manager.admin.inc \theme_no_submit_button()
  3. 7 taxonomy_manager.admin.inc \theme_no_submit_button()

themes a real button form type (no form submit)

7 theme calls to theme_no_submit_button()
taxonomy_manager_add_form in ./taxonomy_manager.admin.inc
form for adding terms
taxonomy_manager_confirm_delete in ./taxonomy_manager.admin.inc
confirmation form for deleting selected terms
taxonomy_manager_double_tree_settings_form in ./taxonomy_manager.admin.inc
taxonomy_manager_export_form in ./taxonomy_manager.admin.inc
form for exporting terms
taxonomy_manager_form in ./taxonomy_manager.admin.inc
defines forms for taxonomy manager interface

... See full list

File

./taxonomy_manager.admin.inc, line 2536
Taxonomy Manager Admin

Code

function theme_no_submit_button($element) {

  // Make sure not to overwrite classes.
  if (isset($element['#attributes']['class'])) {
    $element['#attributes']['class'] = 'form-' . $element['#button_type'] . ' ' . $element['#attributes']['class'];
  }
  else {
    $element['#attributes']['class'] = 'form-' . $element['#button_type'];
  }
  return '<input type="button" ' . (empty($element['#name']) ? '' : 'name="' . $element['#name'] . '" ') . 'id="' . $element['#id'] . '" value="' . check_plain($element['#value']) . '" ' . drupal_attributes($element['#attributes']) . " />\n";
}