function zdigital_button($variables) { $variables['element']['#attributes']['class'][] = 'btn'; return theme_button($variables); }
function teamwork_15_subtheme_button(&$vars) { $classes = array('button-success', 'pure-button-primary', 'button-xlarge', 'pure-button'); if (!isset($vars['#attributes']['class'])) { $vars['#attributes'] = array('class' => $classes); } else { $vars['#attributes']['class'] = array_merge($vars['#attributes']['class'], $classes); } if (!isset($vars['element']['#attributes']['class'])) { $vars['element']['#attributes'] = array('class' => $classes); } else { $vars['element']['#attributes']['class'] = array_merge($vars['element']['#attributes']['class'], $classes); } return theme_button($vars); }
/** * Implements theme_button(). */ function newcomer_button($variables) { $variables['element']['#attributes']['class'][] = 'btn'; return theme_button($variables); }