I'm new to Drupal 7 and installed it on my local machine to play around.
I'd like to build a basic Job Posting Form and wanted to ask about questions/best practices regarding Drupal.
This was the process I was going to follow:
- Create a new content-type "job", add a title, description and pay - all text fields.
- Create a new module, then within the module build out the custom form to create a new job listing. How do I associate the new form with the content-type? Should I build the form code in my custom theme folder (template.php) or in a new module?
- When the form is submitted, how does the data get saved? How do I associate the submitted form with the database? Most of the examples using the Form API only mention building the form but not how to store the data (in my example, storing the "job" as new content).
I'm not asking for you to write code for me, but I'm having a difficult time understanding the workflow and best practices for working with Forms in Drupal 7. Any good guides on how to accomplish what I need would also be appreciated.