| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 29 | function field_options( $field_options, $template_id, $field_id, $context, $input_type ) { |
||
|
|
|||
| 30 | |||
| 31 | $field_options['number_format'] = array( |
||
| 32 | 'type' => 'checkbox', |
||
| 33 | 'label' => __( 'Format number?', 'gravityview' ), |
||
| 34 | 'desc' => __('Display numbers with thousands separators.', 'gravityview'), |
||
| 35 | 'value' => false, |
||
| 36 | ); |
||
| 37 | |||
| 38 | $field_options['decimals'] = array( |
||
| 39 | 'type' => 'number', |
||
| 40 | 'label' => __( 'Decimals', 'gravityview' ), |
||
| 41 | 'desc' => __('Precision of the number of decimal places. Leave blank to use existing precision.', 'gravityview'), |
||
| 42 | 'value' => '', |
||
| 43 | 'merge_tags' => false, |
||
| 44 | ); |
||
| 45 | |||
| 46 | return $field_options; |
||
| 47 | } |
||
| 48 | |||
| 52 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.