Hello,

when I do not enable the menu for a certain content type, the menu selection fields do not appear but there is still the option field from the Menu-HTML- Modul http://drupal.org/project/menu_html.
(" If you want to add html tags to the title of a menu, enable this. This should only be accessible to trusted users.). How can I make to disappear this?

Is this something to post here or should I post it to the menu html?

Regards

Adriana

Comments

vasike’s picture

Project: Menu Settings per Content Type » Menu HTML
Version: 6.x-1.0 » 6.x-1.1

i think it's for menu html

mzwyssig’s picture

Subscribing.

gagarine’s picture

Title: Menu HTML option does not disappear » Menu HTML option does not disappear (conflict with Menu Settings per Content Type)

I will certainly not try to fix this one...

elwyn’s picture

I've just run into this bug while trying to fix another HTML Menu bug (see: https://drupal.org/node/1716906).
I'm running Drupal 7.15 with Menu HTML 7.x-1.x-dev

I've fixed it by modifying menu_html.module.

Inside the menu_html_form_alter function I've added a condition to the if statement: && isset($form['menu'])

function menu_html_form_alter(&$form, $form_state, $form_id) {
	if ($form_id == 'menu_edit_item' || strpos($form_id, '_node_form') > 0 && isset($form['menu'])) {
		//Rest of function here....
	}
}

Sorry I'm not sure how to turn this into a .patch file. Hope it helps!

KerriO’s picture

Thanks for the fix, elwyn.
gagarine — thanks for the module! Curious—was that a typo when you said you will certainly not try to fix it?

gagarine’s picture

Version: 6.x-1.1 » 7.x-1.x-dev

This is fixed for the 7.x.

@KerriO yes was a typo... (I think or perhaps I didn't get the issue).

gagarine’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev