I am working on a module that would allow nodes to be set as unpublished based on a user entered value.
For example the user is setting a duration of 10. I need to get the current time, add ten (from the user), then save into my db into pm_field_item_close_date 9which I already have within my node_item table. I am trying to do this when the user creates the node so I thought I should use the hook_insert.
I want to be able to enter a list of items and have users give the items monetary values. I want each item to display the average of these given values. Each user should only be able to assign one value to each item.