Closed (fixed)
Project:
Node registration
Version:
7.x-1.13
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2014 at 06:44 UTC
Updated:
11 Mar 2014 at 20:20 UTC
Jump to comment: Most recent
Comments
Comment #1
rudiedirkx commentedYou can implement
hook_node_registration_access()to customize registration access. Look at node_registration.api.php.Comment #2
n.carrier commentedHello and thank you for your answer.
I'm trying to implement this hook, but I don't know which method to use to check if the user already has a canceled registration.
Do I must query the node_registration directly ? Or does the module provide an API for that ?
Comment #3
rudiedirkx commentedNo API for fetching canceled registrations, so you should query the db directly. Very easy query.
If you want the user to see a message when registering, you should alter the form and add a validation handler. If you override the access, the user won't even see the form or tab/page. Whichever you want.