I have a website that has users with role "sellers". The website has a nodes/stores that belongs to the sellers.
So let's say I have 3 users and 10 nodes for their objects. The names will be fictive, just to explain better this specific task.
Users with role "sellers":
John's store 1
John's store 2
John's store 3
Mark's store 1
Mark's store 2
Mark's store 3
Mark's store 4
Cindy's store 1
Cindy's store 2
Cindy's store 3
Every seller will be able to login into the website and see his/her stores, but cannot create or edit a node/store. Only admin will do that. When creating these stores the admin will make author by the user name. For an example:
John's three stores nodes will have author as John, so the seller John when log into his user pages, will be able to see his stores. That's ok and already accomplished.
When John's wants to make some new offers will send a form that will be sent to the admin. The specific thing is, John will be able to select a drop down list with his stores (in this case 3) and select what stores will have this new offer, so on sending the email, the admin will know for which stores is the new offer.
How can I create this kind of drop down select list based on author id?
I have acknowledge with custom modules and lot's of hooks, so creating a custom form wont be difficult.