function wysiwyg_tinymce_settings_form_validate_menu in Wysiwyg 6.2
Same name and namespace in other branches
- 7.2 editors/tinymce.inc \wysiwyg_tinymce_settings_form_validate_menu()
#element_validate handler for menu element added by wysiwyg_tinymce_settings_form().
1 string reference to 'wysiwyg_tinymce_settings_form_validate_menu'
- wysiwyg_tinymce_settings_form in editors/
tinymce.inc - Enhances the editor profile settings form for TinyMCE.
File
- editors/
tinymce.inc, line 662 - Editor integration functions for TinyMCE.
Code
function wysiwyg_tinymce_settings_form_validate_menu($element, &$form_state) {
$helper = _wysiwyg_settings_form_validate_json_object($element, $form_state);
if (!$helper['valid']) {
form_error($element, t('The specified menu structure must be a valid JSON object.') . ' ☆');
}
}