function _homebox_user_access_view_user_homebox in Homebox 7.2
Same name and namespace in other branches
- 6.3 homebox.module \_homebox_user_access_view_user_homebox()
- 6.2 homebox.module \_homebox_user_access_view_user_homebox()
- 7.3 homebox.module \_homebox_user_access_view_user_homebox()
Helper function to check access permissions for user profile Homebox
Only show tab if you're viewing your own account
1 string reference to '_homebox_user_access_view_user_homebox'
- homebox_menu in ./
homebox.module - Implements hook_menu().
File
- ./
homebox.module, line 1574 - Homebox main file, takes care of global functions settings constants, etc.
Code
function _homebox_user_access_view_user_homebox($page, $profile) {
global $user;
if ($user->uid == $profile->uid && _homebox_user_access_view_homebox($page)) {
return TRUE;
}
else {
return FALSE;
}
}