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.
The button is being displayed with horizontal counter regardless of value of tweetbutton_button variable. The bug is rather simple - maybe just a copy-paste typo.
See tweetbutton.module:
function tweetbutton_node_view($node, $view_mode) {
...
'title' => theme('tweetbutton_display__' . $node->type, array('object' => $node, 'options' => array('type' => 'horizontal'))),
...
tweetbutton_button value is not being read and is hard-coded 'horizontal'.
See the patch attached for workaround.
Comment | File | Size | Author |
---|---|---|---|
tweetbutton.patch | 669 bytes | iamweird | |
Comments
Comment #1
djmy CreditAttribution: djmy commentedhi @iamweird. Is there a patch for this issue for the 7.2x dev? I love the new features on the 7.2 but i keep getting the button horizontal and not vertical. Any help is very much appreciated!
Comment #2
chia CreditAttribution: chia commentedYou can change button type from field formatters under "Manage Display" if fields UI page.
Comment #3
djmy CreditAttribution: djmy commentedThat worked! Thank you chia!!!