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 twitter settings page cannot be overridden, as no _alter hook is provided. I will attach patches for 7.x-5.x and 7.x-6.x to the next post. These patches add a single line to the end of twitter_user_settings():
drupal_alter('twitter_user_settings_page', $output);
This will create: hook_twitter_user_settings_page_alter(&$page)
Comment | File | Size | Author |
---|---|---|---|
#5 | twitter-7.x-6.x-add_override_to_settings_page-2015965-5.patch | 886 bytes | Jaypan |
#5 | twitter-7.x-5.x-add_override_to_settings_page-2015965-5.patch | 886 bytes | Jaypan |
Comments
Comment #1
Jaypan CreditAttribution: Jaypan commentedComment #2
stephen.punwasi CreditAttribution: stephen.punwasi commentedThanks for the patch, this was driving me insane.
Comment #3
Jaypan CreditAttribution: Jaypan commentedstephen.punwasi - can you mark this as reviewed and tested if it is working for you? Thank you.
Comment #4
juampynr CreditAttribution: juampynr commentedWe should add a comment on top like 'Give a chance to other modules to alter the output.'.
Also, we need to update twitter.api.php.
Comment #5
Jaypan CreditAttribution: Jaypan commentedComment #6
Jaypan CreditAttribution: Jaypan commentedComment #7
juampynr CreditAttribution: juampynr commentedMade a little adjustment to the patch and committed it to 7.x-5.x and 7.x-6.x.
http://drupalcode.org/project/twitter.git/commit/ec49cad
http://drupalcode.org/project/twitter.git/commit/964384c
Thanks!