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 user_relationships_blocks plugin uses incorrect variable names in the _user_relationship_blocks_view() function. It therefore effectively ignores admin settings. Attached is a patch which fixes the variable names.
The patch also fixes an incorrect variable name in the theme_user_relationship_block_content() function.
Comment | File | Size | Author |
---|---|---|---|
ur_blocks_vars.patch | 1.54 KB | prfctns6@gmail.com |
Comments
Comment #1
sprsquish CreditAttribution: sprsquish commentedComment #2
olafke CreditAttribution: olafke commentedFirst of all, thanks for this awesome module. I have some trouble with it but I desperately want to get it running.
I have a specific problem with all blocks created by the block module except for the user relationship action block which works perfectly fine.
All other blocks are displayed as long as users do not have relationships with each other. The relationship has been created but the user does not have any of that kind, the block displays "My Friends" or " Users's Friends" : "you have no Friends" or "User has no Friends"
The moment a user has a certain type of relationship, the block in which the relationship should be listed disappears.
I have worked myself through the PHP which left me with a serious headache and no clue what the problem could be. I'll keep trying but any help would be be greatly appreciated.
Comment #3
sprsquish CreditAttribution: sprsquish commentedThe -dev version of the module works as advertised.
I'll be releasing 2.5 shortly. It'll contain all the fixes.
Comment #4
olafke CreditAttribution: olafke commentedCool. Thanks.