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.
I like the open in new tab (or browser) behavior.
The following patch implements that by drupal-variables. It's sub-optimal because they are global changeable in every block.
Micha
Comment | File | Size | Author |
---|---|---|---|
twitter_block_link.patch | 4.92 KB | migmedia | |
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedThanks for the patch but I believe that providing these options as per-block configuration settings is outside of the scope of the Twitter Block module.
You can already modify the
twitter_block_preprocess_twitter_block_tweet()
preprocess function to use whatever link function you desire and a themer could easily override$variables['text']
which could cause the admin options to have no effect.Also
target="_blank"
is not valid XHTML 1.0 strict, which is what Twitter Block 7.x-1.x and 6.x-1.x must support (Twitter Block 8.x will be another matter!).Comment #2
Ankabout CreditAttribution: Ankabout commentedCan anyone please show in this issue how I would go about making the links open in a new window? Either in a preprocess or another method?
Thanks!