|
@@ 2014-2020 (lines=7) @@
|
| 2011 |
|
} |
| 2012 |
|
} |
| 2013 |
|
}//end if |
| 2014 |
|
} elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::text_field_types(), true ) ) { |
| 2015 |
|
// Text fields. |
| 2016 |
|
$current_value = $pod->raw( $field ); |
| 2017 |
|
|
| 2018 |
|
if ( 0 < strlen( $current_value ) ) { |
| 2019 |
|
return stripos( $current_value, $value ); |
| 2020 |
|
} |
| 2021 |
|
} else { |
| 2022 |
|
// All other fields. |
| 2023 |
|
return $this->is( $field, $value, $id ); |
|
@@ 3013-3019 (lines=7) @@
|
| 3010 |
|
} else { |
| 3011 |
|
$value = strtotime( $value ); |
| 3012 |
|
} |
| 3013 |
|
} elseif ( in_array( $this->fields[ $field ]['type'], PodsForm::text_field_types(), true ) ) { |
| 3014 |
|
// Text fields. |
| 3015 |
|
$current_value = $pod->raw( $field ); |
| 3016 |
|
|
| 3017 |
|
if ( 0 < strlen( $current_value ) ) { |
| 3018 |
|
$value = $current_value . $value; |
| 3019 |
|
} |
| 3020 |
|
}//end if |
| 3021 |
|
|
| 3022 |
|
// @todo handle object fields and taxonomies. |