@@ 16-24 (lines=9) @@ | ||
13 | * @param bool $load Should the value be loaded from the database or use the value from the current instance. |
|
14 | * @return array |
|
15 | */ |
|
16 | public function to_json( $load ) { |
|
17 | $field_data = parent::to_json( $load ); |
|
18 | ||
19 | $field_data = array_merge( $field_data, array( |
|
20 | 'options' => $this->parse_options( $this->get_options() ), |
|
21 | ) ); |
|
22 | ||
23 | return $field_data; |
|
24 | } |
|
25 | ||
26 | /** |
|
27 | * The main Underscore template of this field. |
@@ 74-83 (lines=10) @@ | ||
71 | * @param bool $load Should the value be loaded from the database or use the value from the current instance. |
|
72 | * @return array |
|
73 | */ |
|
74 | public function to_json( $load ) { |
|
75 | $field_data = parent::to_json( $load ); |
|
76 | ||
77 | $field_data = array_merge( $field_data, array( |
|
78 | 'limit_options' => $this->limit_options, |
|
79 | 'options' => $this->parse_options( $this->get_options() ), |
|
80 | ) ); |
|
81 | ||
82 | return $field_data; |
|
83 | } |
|
84 | ||
85 | /** |
|
86 | * The Underscore template of this field. |