Consider the following...
I have a CCK content type which includes a user select. When a user creates a node of this type, he/she has to pick a user from the list to which to grant access rights. When the node is submitted, I would like to run some code that grabbed that new $nid, pulled the user selected from the db, and then grant access.
Now I know this question probably doesn't relate directly to the Content Access module but I thought this would be a good place to ask.
Any ideas how this might be achieved?
Cheers,
Chris.
Comments
Comment #1
noobizness commentedcheck out http://drupal.org/project/permissions_api
Comment #2
LEternity commentedAny solution that works without a module?
Comment #3
oknateThe trick is look inside of drupal core functions for the pieces you need, then take them out and run them in a modules install file, or even once in your theme template.php file
Specifically, if you can practice some simple mysql queries, you'll find a lot of power to quickly do tasks.
Comment #4
gisle