function certificate_test_access_certificate in Certificate 8.3
Same name and namespace in other branches
- 6.2 modules/certificate_test/certificate_test.module \certificate_test_access_certificate()
- 7.3 modules/certificate_test/certificate_test.module \certificate_test_access_certificate()
- 7.2 modules/certificate_test/certificate_test.module \certificate_test_access_certificate()
- 3.x modules/certificate_test/certificate_test.module \certificate_test_access_certificate()
Implements hook_access_certificate().
Has user finished this activity?
File
- modules/
certificate_test/ certificate_test.module, line 38
Code
function certificate_test_access_certificate($node, $user) {
if ($node->type == 'certificate_activity') {
if (isset($GLOBALS['certificate_ok']) || isset($_GET['certificate_ok'])) {
return TRUE;
}
else {
return 'Custom access denied message.';
}
}
}