function theme_no_submit_button in Taxonomy Manager 6
Same name and namespace in other branches
- 5 taxonomy_manager.module \theme_no_submit_button()
- 6.2 taxonomy_manager.admin.inc \theme_no_submit_button()
- 7 taxonomy_manager.admin.inc \theme_no_submit_button()
themes a real button form type (no form submit)
6 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_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
- taxonomy_manager_merge_form in ./
taxonomy_manager.admin.inc - form for merging terms
File
- ./
taxonomy_manager.admin.inc, line 1487
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";
}