Software engineer, data guy, Open Source enthusiast, New Hampshire resident, husband, father. Fan of guitars, hiking, photography, homebrewing, sarcasm.
Drupal 6: Prevent the user from creating more than one node (of a certain type)
Last year I wrote a quick code snippet to prevent the user from creating more than one node of a certain type for Drupal 5. I received a comment request to update this code for Drupal 6.
The above code tests if the user is on the node/add/NODETYPE page and if the user has already created an instance of the node type, sets a message and redirects them away from the node/add page.