function hook_registration_access in Entity Registration 7
Same name and namespace in other branches
- 8.2 registration.api.php \hook_registration_access()
- 8 registration.api.php \hook_registration_access()
- 7.2 registration.api.php \hook_registration_access()
Override registration_access with custom access control logic.
Parameters
$op:
Registration $registration:
object $account:
Return value
bool
2 functions implement hook_registration_access()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- registration_entity_access_registration_access in modules/
registration_entity_access/ registration_entity_access.module - Implements hook_registration_access().
- registration_test_api_registration_access in tests/
registration_test_api/ registration_test_api.module - Implements hook_registration_access().
2 invocations of hook_registration_access()
- RegistrationAPITestCase::testHookAccess in tests/
registration.test - Test hook_registration_access().
- registration_access in ./
registration.module - Access callback: Entity API for Registration entities.
File
- ./
registration.api.php, line 16 - API documentation for Relation module.
Code
function hook_registration_access($op, $registration, $account = NULL) {
if ($registration->user_uid == $account->uid) {
return TRUE;
}
}