| @@ 61-71 (lines=11) @@ | ||
| 58 | * @param bool $load Should the value be loaded from the database or use the value from the current instance. |
|
| 59 | * @return array |
|
| 60 | */ |
|
| 61 | public function to_json( $load ) { |
|
| 62 | $field_data = parent::to_json( $load ); |
|
| 63 | ||
| 64 | $this->set_options( apply_filters( 'crb_gravity_form_options', $this->get_options() ) ); |
|
| 65 | ||
| 66 | $field_data = array_merge( $field_data, array( |
|
| 67 | 'options' => $this->parse_options( $this->get_options() ), |
|
| 68 | ) ); |
|
| 69 | ||
| 70 | return $field_data; |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * The main Underscore template of this field. |
|
| @@ 85-94 (lines=10) @@ | ||
| 82 | * @param bool $load Should the value be loaded from the database or use the value from the current instance. |
|
| 83 | * @return array |
|
| 84 | */ |
|
| 85 | public function to_json( $load ) { |
|
| 86 | $field_data = parent::to_json( $load ); |
|
| 87 | ||
| 88 | $field_data = array_merge( $field_data, array( |
|
| 89 | 'limit_options' => $this->limit_options, |
|
| 90 | 'options' => $this->parse_options( $this->get_options() ), |
|
| 91 | ) ); |
|
| 92 | ||
| 93 | return $field_data; |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * The Underscore template of this field. |
|