예제 #1
0
function zdigital_button($variables)
{
    $variables['element']['#attributes']['class'][] = 'btn';
    return theme_button($variables);
}
예제 #2
0
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);
}
예제 #3
0
/**
 * Implements theme_button().
 */
function newcomer_button($variables)
{
    $variables['element']['#attributes']['class'][] = 'btn';
    return theme_button($variables);
}