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'd like to request that this be added to the twitter_signin module.
http://drupal.org/sandbox/iwhitcomb/1539648
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#7 | 1814724-twitter-twitter-signin-behavior.patch | 4.77 KB | iwhitcomb |
Comments
Comment #1
xurizaemonIan, this would be a good feature to add. Are you interested in turning this into a straight patch for twitter_signin rather than a separate module? If so would be nice to see it in 7.x-3.4
Comment #2
iwhitcomb CreditAttribution: iwhitcomb commentedSure, I can work on that
Comment #3
iwhitcomb CreditAttribution: iwhitcomb commentedThis ought to do it
Comment #4
manarth CreditAttribution: manarth commentedI noticed in
theme_twitter_signin_button
, you pull in the$user
global, and check for a user uid. If you're only checking to see if the current visitor is an anoymous user, there's another function you can use:user_is_anonymous()
(there's also a correspondinguser_is_logged_in()
function).Personally I find this a little more readable as a developer.
Comment #5
13rac1 CreditAttribution: 13rac1 commentedI agree with #4, plus patch does not cleanly apply to 7.x-5.x.
Comment #6
13rac1 CreditAttribution: 13rac1 commentedComment #7
iwhitcomb CreditAttribution: iwhitcomb commentedOriginally this was for 7.x-3.4 here's the 7.x-5.x patch
Comment #8
DamienMcKennaTriggering the testbot.
Comment #9
DamienMcKennaTriggering the testbot.
Comment #12
DamienMcKenna