How to hide menu settings at content creation for specific content types I'm adding menu items programatically. Is it possible to get rid of this for specific content types?:



In my situation it's just one more way to break something, and is totally not needed :) .
You can use hook_form_alter placed in a custom module or in your theme's template.php file for this. Try something like this:

function THEME_OR_MODULE_NAME_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  // There's probably an easier way to check if it's an update or create form.
  if (!$form['nid']['#value'] &amp;&amp; $form['type']['#value'] == 'page') {
    unset($form['menu']);
  }
}


I'm not completely sure about the $form['type']['#value'] value. You might want to double check that so you won't get any false positives on other pages which also has forms. You could use $form_id for this, but that variable is unique for each content type.