| @@ -47,8 +47,11 @@ | ||
| 47 | 47 | protected function include_form_builder_file() { |
| 48 | 48 | return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-user-id.php'; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** | |
| 52 | + * @param array $args | |
| 53 | + */ | |
| 51 | 54 | public function prepare_field_html( $args ) { |
| 52 | 55 | $args = $this->fill_display_field_values( $args ); |
| 53 | 56 | $value = $this->get_field_value( $args ); |
| 54 | 57 | |
| @@ -70,8 +73,13 @@ | ||
| 70 | 73 | $updating = $action === 'update'; |
| 71 | 74 | return is_numeric( $this->field['value'] ) || $posted_value || $updating ? $this->field['value'] : $user_ID; |
| 72 | 75 | } |
| 73 | 76 | |
| 77 | + /** | |
| 78 | + * @param array $args | |
| 79 | + * | |
| 80 | + * @return array | |
| 81 | + */ | |
| 74 | 82 | public function validate( $args ) { |
| 75 | 83 | // phpcs:ignore Universal.Operators.StrictComparisons |
| 76 | 84 | if ( '' == $args['value'] ) { |
| 77 | 85 | return array(); |