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