On a site I'm developing each user can have only 1 of a specific node type.
As I've been unable to find a module to handle it (profile isn't quite what I'm looking for) I'm beginning to make one myself, and it's my first.
One possible solution would be to just alter the menu so that the node create link for this node type redirects to the edit link for the users current node, however this still allows users to create nodes they shouldn't be able to with the node/create url, an XSS attack.
I would like to catch the drupal creation of the node create page itsself and then (Based on a query as to weather the user already has such a node type) either continue loading the node creation page, or instead load the edit page, to avoid url hacks like that.
My problem is that I don't know where to hook the node creation pipeline to do this.
Comments
I would implement
I would implement hook_menu_alter() something like this
and pseudo code yourmodule_node_add would be something like
So this allows me to serve a
So this allows me to serve a different page than the one normally provided at that url, or does it only alter actual menus?
It handles any use of the
It handles any use of the path node/add/yourtype
FBconnect
I need a help about fbconnect for drupal.
You should open a new issue
You should open a new issue as this one has nothing to do with fbconnect