function theme_no_submit_button in Taxonomy Manager 5
Same name and namespace in other branches
- 6.2 taxonomy_manager.admin.inc \theme_no_submit_button()
- 6 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.module - form for adding terms
- taxonomy_manager_confirm_delete in ./
taxonomy_manager.module - confirmation form for deleting selected terms
- taxonomy_manager_export_form in ./
taxonomy_manager.module - form for exporting terms
- taxonomy_manager_form in ./
taxonomy_manager.module - defines forms for taxonomy manager interface
- taxonomy_manager_merge_form in ./
taxonomy_manager.module - form for merging terms
File
- ./
taxonomy_manager.module, line 1536 - Taxonomy Manager
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";
}