Please see this post I've just added in the Menu Attributes issue queue: https://www.drupal.org/node/2411003
Menu Views has a higher weight, so the form_alter function is overwriting the value of $form['description']['#access'] that's set by Menu Attributes. I'm not sure if this can be solved simply by Menu Attributes moving to a higher weight, or if that may cause some problems for Menu Views.
Menu Attributes is attempting to stop the Description field from rendering, store the value in the Menu Attributes title field, and save the value back to the hidden Description field. Probably the best approach would be to review each other's form_alter code to make sure you're both getting the values you'd expect.
Thanks for looking into this.
Comment | File | Size | Author |
---|---|---|---|
#4 | description_field-2411009-4.patch | 1.54 KB | markhalliwell |
Comments
Comment #1
markhalliwellYou've created other patches, would you mind doing the same for this please. I don't have time to "look into it".
Comment #2
ron_s CreditAttribution: ron_s commentedSure, let me look at it. I had some ideas before, but didn't want to assume in case you had plans of how the module might change in the future.
Comment #3
ron_s CreditAttribution: ron_s commentedOk, I think this should work... essentially ignoring the show/hide of the description field if the Menu Attributes module is present. By doing so, Menu Attributes will have default control.
When Menu Attributes and Menu Views are both enabled, the description field is not displayed (as expected). If Menu Attributes is disabled, the description field is shown again.
Comment #4
markhalliwellLooks good. I moved the
module_exists
check out of the foreach loop though. I'll commit once you RTBC.Comment #5
ron_s CreditAttribution: ron_s commentedGood point, I should have done that. I've tested and looks good.
Comment #7
markhalliwell