function _mee_widget_settings_row_validate in Scald: Media Management made easy 6
1 string reference to '_mee_widget_settings_row_validate'
- mee_widget_settings in mee/
mee.module - Implementation of hook_widget_settings().
File
- mee/
mee.module, line 381 - Defines a special textarea, with drag and drop media driven by Scald and dnd.module when rich text editing is enabled on the textarea via the WYSIWYG API.
Code
function _mee_widget_settings_row_validate($element, &$form_state) {
$value = $form_state['values']['rows'];
if (!is_numeric($value) || intval($value) != $value || $value <= 0) {
form_error($element, t('"Rows" must be a positive integer.'));
}
}