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_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%.');
}
}