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.
I want the My Friends functionality to have a permissions setting so I can better control who can use this feature.
I changed this:
$items['user/%user/friends'] = array(
'title' => 'My Friends',
'page callback' => 'gigya_get_friends',
'type' => MENU_LOCAL_TASK,
'page arguments' => array(1, 'user'),
'access arguments' => array('gigya friends access'),
'file' => 'gigya.pages.inc',
);
This includes an access argument called "gigya friends access"
Then I added this to hook_perm().
I hope this can be added to the next release.
Comments
Comment #1
Gigya CreditAttribution: Gigya commentedGigya's 6.x module is deprecated. We no longer support this version and we encourage upgrading to our latest module.