You are here

function _homebox_user_access_view_user_homebox in Homebox 7.3

Same name and namespace in other branches
  1. 6.3 homebox.module \_homebox_user_access_view_user_homebox()
  2. 6.2 homebox.module \_homebox_user_access_view_user_homebox()
  3. 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
Implements hook_menu().

File

./homebox.module, line 1583
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;
  }
}