You are here

function homebox_edit_access in Homebox 7.3

Same name and namespace in other branches
  1. 6.3 homebox.module \homebox_edit_access()
  2. 6.2 homebox.module \homebox_edit_access()
  3. 7.2 homebox.module \homebox_edit_access()

Check that a request is logged-in, has access to view the homebox, and has a valid token. Use tokens from homebox_get_token().

1 string reference to 'homebox_edit_access'
homebox_menu in ./homebox.module
Implements hook_menu().

File

./homebox.module, line 1525
Homebox main file, takes care of global functions settings constants, etc.

Code

function homebox_edit_access($page) {
  return _homebox_user_access_view_homebox($page, TRUE) && isset($_REQUEST['token']) && drupal_valid_token($_REQUEST['token'], 'homebox-' . $page->name);
}