function _field_kaltura_widget_settings_row_validate in Kaltura 5
Same name and namespace in other branches
- 6.2 plugins/field_kaltura/field_kaltura.module \_field_kaltura_widget_settings_row_validate()
- 6 plugins/field_kaltura/field_kaltura.module \_field_kaltura_widget_settings_row_validate()
File
- plugins/
field_kaltura/ field_kaltura.module, line 369 - kaltura integration module - functions to provide kaltura as CCK field
Code
function _field_kaltura_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.'));
}
}