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.
Hi,
When I create a new relationship type, but decide to delete it later, the relationship type still shows up as a tab under the "my relationships" link. I.E. I created a relationship called "Fans". I decided I didn't want this relationship type anymore, so I deleted in in the Relationships Admin panel. However, when I log in as a test user and go to "my relationships", it still appears, but says that no relationships of that type exist....
Does anyone know how to remove this?
Thanks,
CarbonPig
Comments
Comment #1
jaydub CreditAttribution: jaydub commentedWhen you delete a relationship type, the menu item generated when you created the relationship type will still be in the menu cache. You need to clear the menu cache to make sure the menu entries for the deleted relationship are removed.
There is a cache clear button at /admin/settings/performance you can use to clear the menu cache in this case.
Comment #2
jeya CreditAttribution: jeya commentedYou have to add these two lines in
user_relationships_ui.admin_actions.inc - Line 113.
user_relationships_types_load(TRUE);
menu_rebuild();
Menu would be rebuilt automatically ..
Comment #3
ajayg CreditAttribution: ajayg commentedComment #4
alex.k CreditAttribution: alex.k commentedCommitted, thanks!