Software engineer, data guy, Open Source enthusiast, New Hampshire resident, husband, father. Fan of guitars, hiking, photography, homebrewing, sarcasm.
Drupal 5: Prevent the user from creating more than one node (of a certain type)
In certain situations you may want to prevent the user from creating more than one node (of a certain type). This can be accomplished using the hook_nodeapi:
NOTE: the above code will prevent the user from adding another node by redirecting them away from the node/add page