function wysiwyg_ckeditor_settings_form_validate_allowed_content in Wysiwyg 6.2
Same name and namespace in other branches
- 7.2 editors/ckeditor.inc \wysiwyg_ckeditor_settings_form_validate_allowed_content()
#element_validate handler for ACF Allowed Content element altered by wysiwyg_ckeditor_settings_form().
1 string reference to 'wysiwyg_ckeditor_settings_form_validate_allowed_content'
- wysiwyg_ckeditor_settings_form in editors/
ckeditor.inc - Enhances the editor profile settings form for CKEditor.
File
- editors/
ckeditor.inc, line 417 - Editor integration functions for CKEditor.
Code
function wysiwyg_ckeditor_settings_form_validate_allowed_content($element, &$form_state) {
if (_wysiwyg_ckeditor_settings_acf_is_obj($element['#value']) && json_decode($element['#value']) === NULL) {
form_error($element, t('Allowed content is not valid JSON.'));
}
}