In the 5.x-3.x branch, the API and UI portions of the module were separated out. Unfortunately, the hook_perm() was never renamed, so there's no possibility of setting the 'can have relationship' permission.

Comments

webchick’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new771 bytes

Here's a patch. I always hesitate to mark my own patches RTBC, but this really is a simple one. :)

webchick’s picture

Hm. Make that typos in /all/ of the hooks.

Also fixing the Doxygen while I'm in there since it's annoying me.

webchick’s picture

Title: Can't form relationships: typo in hook_perm() » Lots of fatal errors due to typos in 5.x-3.x branch
Status: Reviewed & tested by the community » Needs review
StatusFileSize
new3.16 KB

Sheesh. The fun just keeps coming. ;)

This is now extensive enough that it probably could use review first.

webchick’s picture

StatusFileSize
new3.98 KB

And another one...

alex.k’s picture

Assigned: Unassigned » alex.k

Thanks webchick, applying and reviewing these.

alex.k’s picture

Status: Needs review » Fixed

Committed, I've tracked down a few others having to do with hook_install/uninstall/update. Hope it 'compiles' now.

alb’s picture

not work;
errore when active UR-Node Access
* user warning: Table 'drupal-5-7_001_a_022.user_relationships' doesn't exist query: SELECT DISTINCT ur.rid,ur.*,urt.* FROM user_relationships ur INNER JOIN user_relationship_types urt USING ( rtid ) WHERE (ur.requester_id = 1 OR ur.requestee_id = 1) AND ur.approved = 1 GROUP BY rid in C:\drupal\includes\database.mysql.inc on line 172.
* user warning: Table 'drupal-5-7_001_a_022.user_relationships' doesn't exist query: SELECT DISTINCT ur.rid,ur.*,urt.* FROM user_relationships ur INNER JOIN user_relationship_types urt USING ( rtid ) WHERE (ur.requester_id = 1 OR ur.requestee_id = 1) AND ur.approved = 1 GROUP BY rid in C:\drupal\includes\database.mysql.inc on line 172.

I see with my phpmyadmin that the error is that, the only table that is created is user_relationship_node_access;not other table are created.

I have php 4.7
mysql 4.1.12a

I have made test on a new installation;
the other version work (installed 5.x-2.8)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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