Hello!
I'm implementing a module with several custom nodes. I'm dispatching as much as possible to the node module's code.
I happily implemented mymodule_form() and my extra form elements are appearing just fine when adding/editing a mymodule node.
Two problems though.
1. When adding/editing, the 'title' field is manditory, which is fine. Except that its label is hardcoded to 'title'. A custom node modelling, say, a 'Company' would much rather this field be presented to the user as 'Company Name'. Could you introduce a hook for this?
2. Submitting a new mymodule node works great too. Except that the redirect at the end of the submit is harcoded to node/[nid]. In the case of mymodule, I want to be redirected to 'mymodule/overview'. The only way I can do this right now is by copying the node_submit() code to my module and changing that last redirect line and implementing mymodule_page() so that Submits calls mymodule_submit() . Could this submit redirect path instead be addressed by a hook in the future?
Thank you.
Comments
Please create feature
Please create feature requests instead of forum posts for such issues.
The first one is already handled here:
http://drupal.org/node/10056
--
If you have troubles with a particular contrib project, please consider to file a support request. Thanks.
--
Drupal services
My Drupal services
Thanks for your quick reply
Thanks for your quick reply and for instructing me on the correct procedure.
Patch exists for "title" issue.
See this issue.