|
@@ 153-161 (lines=9) @@
|
| 150 |
|
/** |
| 151 |
|
* @deprecated 3.0 |
| 152 |
|
*/ |
| 153 |
|
public static function validate_email_field( &$errors, $field, $value, $args ) { |
| 154 |
|
_deprecated_function( __FUNCTION__, '3.0', 'FrmFieldType::validate' ); |
| 155 |
|
|
| 156 |
|
if ( $field->type != 'email' ) { |
| 157 |
|
return; |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
self::validate_field_types( $errors, $field, $value, $args ); |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
/** |
| 164 |
|
* @deprecated 3.0 |
|
@@ 166-175 (lines=10) @@
|
| 163 |
|
/** |
| 164 |
|
* @deprecated 3.0 |
| 165 |
|
*/ |
| 166 |
|
public static function validate_number_field( &$errors, $field, $value, $args ) { |
| 167 |
|
_deprecated_function( __FUNCTION__, '3.0', 'FrmFieldType::validate' ); |
| 168 |
|
|
| 169 |
|
//validate the number format |
| 170 |
|
if ( $field->type != 'number' ) { |
| 171 |
|
return; |
| 172 |
|
} |
| 173 |
|
|
| 174 |
|
self::validate_field_types( $errors, $field, $value, $args ); |
| 175 |
|
} |
| 176 |
|
|
| 177 |
|
public static function validate_phone_field( &$errors, $field, $value, $args ) { |
| 178 |
|
if ( $field->type == 'phone' || ( $field->type == 'text' && FrmField::is_option_true_in_object( $field, 'format' ) ) ) { |