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'm using this module in an install profile and I'd like to create and enable a Twitter block during the install process so it's ready and waiting when the user first logs in.
I've done this with custom blocks by simply implementing hook_block_info() and hook_block_view() in a custom module, however I don't think that will work here as you're not using the default custom block system...
How do I therefore create a Twitter block programatically?
Comments
Comment #1
BWPanda CreditAttribution: BWPanda commentedAh, nevermind. As I will only ever need one Twitter block, I've decided to just bypass this module and implement my own Twitter block based on your code.
Problem solved :)
Comment #2
ssanchez77 CreditAttribution: ssanchez77 commentedHello BWPanda. I need exactly the same functionality. Did you publish your implementation of this module?
Thanks in advance.
Comment #3
BWPanda CreditAttribution: BWPanda commented@ssanchez77: No, sorry. I'm currently redoing that site, so will probably be looking into this again in the next few months...