function should be user_relationships_types_load() ... tested with user_relationships:DRUPAL-5--2-4-2

Comments

sirkitree’s picture

Priority: Normal » Critical
Lausch’s picture

+1 for this bug

robomalo’s picture

+1

Anonymous’s picture

+1, any progress on this bug?

txcrew

Anonymous’s picture

I just looked into this bug for myself and I attempted at making a patch but was too overwhelmed. But it looks like the function user_relationships_relationship_types_load is actually listed as user_relationships_type_load in user_relationships_api.inc.

So just changing the name of the function on line 31 in user_relationshipsactivity.module from user_relationships_relationship_types_load to user_relationships_type_load.

This may in turn throw this error warning: Invalid argument supplied for foreach() in ../sites/all/modules/activity/contrib/user_relationshipsactivity/user_relationshipsactivity.module on line 33. if you don't have any relationship types set.

jaydub’s picture

Status: Active » Needs review
StatusFileSize
new574 bytes

patch for latest version of user_relationships and activity

sprsquish’s picture

StatusFileSize
new5.74 KB

Hey guys,

I was going through my issues list and saw a thread discussing integration with Activity. Following up on that I saw this thread. I noticed a few issues actually. I'd changed the API some in recent releases and the contributed user_relationshipsactivity module hadn't been updated to reflect those.

I do apologize for the moving target of an API, but it's stable now. So here's a patch that fixes the bug identified above and updates the user_relationships hook to work with the current API.

sirkitree’s picture

Status: Needs review » Fixed

committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.