function _homebox_user_access_view_user_homebox in Homebox 6.3
Same name and namespace in other branches
- 6.2 homebox.module \_homebox_user_access_view_user_homebox()
- 7.3 homebox.module \_homebox_user_access_view_user_homebox()
- 7.2 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 - Implementation of hook_menu().
File
- ./
homebox.module, line 1503 - 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;
}
}