You are here

function _field_kaltura_widget_settings_row_validate in Kaltura 6

Same name and namespace in other branches
  1. 5 plugins/field_kaltura/field_kaltura.module \_field_kaltura_widget_settings_row_validate()
  2. 6.2 plugins/field_kaltura/field_kaltura.module \_field_kaltura_widget_settings_row_validate()

File

plugins/field_kaltura/field_kaltura.module, line 407
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.'));
  }
}