Evitar navegación.
Principal
Proveedor de Aplicaciones Informáticas

Drupal 6: Hidden a menu item in node edit page

I was searching for a way to disable menu items from their node edit page. I saw some questions about on drupal's forum:
Edit node menu settings part - disable item?
Disable menu items from node edit form

But I did not see anything that help me. Then, I have searched in the core php code for acomplish it.
At finish, I figure it out, adding this code in menu.module file at function menu_form_alter():

$form['menu']['hidden'] = array(
'#type' => 'checkbox',
'#title' => t('Hidden'),
'#default_value' => $item['hidden'],
'#description' => t('Menu items that are hidden will not be listed in any menu.'),
);

I am attaching a patch file.

AdjuntoTamaño
Hidden menu item from node edit page654 bytes