function ckeditor_user_customize_form_validate in CKEditor - WYSIWYG HTML editor 7
1 string reference to 'ckeditor_user_customize_form_validate'
- ckeditor_user_customize in includes/
ckeditor.user.inc - CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
File
- includes/
ckeditor.user.inc, line 109 - CKEditor - The text editor for the Internet - http://ckeditor.com Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
Code
function ckeditor_user_customize_form_validate(&$form, &$form_state) {
/*
if (isset($form_state['values']['ckeditor_default'], $form_state['values']['ckeditor_popup']) && $form_state['values']['ckeditor_default'] == 't' && $form_state['values']['ckeditor_popup'] == 't') {
form_set_error('ckeditor_popup', t('If CKEditor is enabled by default, the popup window must be disabled.'));
}
if (isset($form_state['values']['ckeditor_show_toggle'], $form_state['values']['ckeditor_popup']) && $form_state['values']['ckeditor_show_toggle'] == 't' && $form_state['values']['ckeditor_popup'] == 't') {
form_set_error('ckeditor_popup', t('If toggle is enabled, the popup window must be disabled.'));
}
*/
if (isset($form_state['values']['ckeditor_width']) && !preg_match('/^\\d+%?$/', $form_state['values']['ckeditor_width'])) {
form_set_error('ckeditor_width', t('Enter a valid width value.') . ' ' . t('Examples:') . ': 400 ' . t('or') . ' 100%.');
}
}