Problem/Motivation

Menu Attributes provides hook_menu_attributes_info to allow additional Form API elements to be included for saving within menu item options. This includes text_format Form API elements. However, text_format saves its value/format combination in the format

$text_format_value = array(
  'value' => $text_value,
  'format' => $text_format,
);

_menu_attributes_form_alter() does not account for this structure when setting the #default_value of its form elements, and so the saved text_format value/format combination is not loaded correctly into the form.

Proposed resolution

The attached patch has handling for the default value of text_format form elements.

Files: 
CommentFileSizeAuthor
#1 menu_attributes-text_format_handling-1971288-1.patch869 bytestimcosgrove
PASSED: [[SimpleTest]]: [MySQL] 108 pass(es).
[ View ]
menu_attributes_text_format_handling.patch869 bytestimcosgrove
PASSED: [[SimpleTest]]: [MySQL] 108 pass(es).
[ View ]

Comments

StatusFileSize
new869 bytes
PASSED: [[SimpleTest]]: [MySQL] 108 pass(es).
[ View ]

Patch renamed according to issue number.

Status:Active» Needs review

Issue summary:View changes

Spelling correction.