When creating content, I would like to force the checkbox "Provide a menu link" to be checked by default.
What I'm really trying to do:
- I created a new content type
- I used
node_addto get the form associated to my content type and render it into my template.
- In my module I used the
hook_form_alterto hide some fields of my form.
But when the user submit the form and the node is created, there is no menu link created by default.