function follow_links_user_access in Follow 7
Same name and namespace in other branches
- 5 follow.module \follow_links_user_access()
- 6 follow.module \follow_links_user_access()
- 7.2 follow.module \follow_links_user_access()
Access callback for user follow links editing.
1 call to follow_links_user_access()
- follow_contextual_links_view_alter in ./
follow.module - Implements hook_contextual_links_view_alter().
1 string reference to 'follow_links_user_access'
- follow_menu in ./
follow.module - Implementation of hook_menu().
File
- ./
follow.module, line 75 - Allows users to add links to their social network profiles.
Code
function follow_links_user_access($uid) {
return ($GLOBALS['user']->uid == $uid && user_access('edit own follow links') || user_access('edit any user follow links')) && $uid > 0;
}