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.
We should genericize the user's friends blocks so that they are viewable from any given node type or /user page, not just usernode. I think we can accomplish this by removing the code that checks if usernode exists and putting in a configuration option that allows admins to choose which node types or user page to display the block on. Any further configuration can be done via the block module's visibility settings.
Comment | File | Size | Author |
---|---|---|---|
#1 | urblocks_nodetypes.patch | 5.27 KB | prfctns6@gmail.com |
Comments
Comment #1
prfctns6@gmail.com CreditAttribution: prfctns6@gmail.com commentedJeff: This wasn't too much work, but it was still a bit more than a minor tweak, so I'm uploading a patch for your review, as opposed to just checking it in. Please look over the patch when you get a chance, and let me know if it's okay to check it in. Thanks.
Comment #2
sprsquish CreditAttribution: sprsquish commentedAccepted. Thanks!
Feel free to commit.
Comment #3
prfctns6@gmail.com CreditAttribution: prfctns6@gmail.com commentedThanks for the quick review, Jeff! I've committed the code.
Comment #4
sprsquish CreditAttribution: sprsquish commented