Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function bootstrap_subtheme_adl_admin_button($variables) {
- $element = $variables['element'];
- $value = $element['#value'];
- if (!empty($element['#icon'])) {
- if ($element['#icon_position'] === 'before') {
- $value = $element['#icon'] . ' ' . $value;
- }
- elseif ($element['#icon_position'] === 'after') {
- $value .= ' ' . $element['#icon'];
- }
- }
- return '<input' . drupal_attributes($element['#attributes']) . '>n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement