Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you want to make a split dropdown, you can use twitter_bootstrap_twitter_bootstrap_btn_dropdown. The label though should automatically inherit the button styling. This would be nicer than passing the class on ourselves.
function twitter_bootstrap_twitter_bootstrap_btn_dropdown($variables) {
...
// Ad as string if its not a link
if(is_array($variables['label'])) {
$variables['label']['attributes']['class'][] = 'btn';
$variables['label']['attributes']['class'][] = 'btn-'. $variables['type'];
$output .= l($variables['label']['title'], $variables['label']['href'], $variables['label']);
}
Comments
Comment #1
andregriffin CreditAttribution: andregriffin commentedComment #2
andregriffin CreditAttribution: andregriffin commentedComment #3
natted CreditAttribution: natted commentedComment #4
frankbaele CreditAttribution: frankbaele commented