Skip to content
Snippets Groups Projects
Commit 8146a6d8 authored by Tim Steiner's avatar Tim Steiner
Browse files

Change the node edit form to always provide a menu link, but have the option to hide the menu item.

git-svn-id: file:///tmp/wdn_thm_drupal/trunk@308 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent fa2986c4
Branches
No related tags found
No related merge requests found
......@@ -218,7 +218,7 @@ function unl_form_alter(&$form, $form_state, $form_id) {
* be using the menu to build a site hierarchy. Instead, add a button that will
* determine whether or not the menu link is visible or not.
*/
if ($form_id == 'page_node_form') {
if (substr($form_id, -10) == '_node_form') {
$form['menu']['#title'] = 'Site hierachy';
$form['menu']['enabled']['#default_value'] = TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment