|
@@ 792-805 (lines=14) @@
|
| 789 |
|
$format_type = pods_v( self::$type . '_format_type', $options, 'single' ); |
| 790 |
|
|
| 791 |
|
if ( 'single' == $format_type ) { |
| 792 |
|
if ( 'dropdown' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) |
| 793 |
|
$field_type = 'select'; |
| 794 |
|
elseif ( 'radio' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) |
| 795 |
|
$field_type = 'radio'; |
| 796 |
|
elseif ( 'autocomplete' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) |
| 797 |
|
$field_type = 'select2'; |
| 798 |
|
elseif ( 'flexible' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) |
| 799 |
|
$field_type = 'flexible'; |
| 800 |
|
else { |
| 801 |
|
// Support custom integration |
| 802 |
|
do_action( 'pods_form_ui_field_pick_input_' . pods_var( self::$type . '_format_type', $options, 'single' ) . '_' . pods_var( self::$type . '_format_single', $options, 'dropdown' ), $name, $value, $options, $pod, $id ); |
| 803 |
|
do_action( 'pods_form_ui_field_pick_input', pods_var( self::$type . '_format_type', $options, 'single' ), $name, $value, $options, $pod, $id ); |
| 804 |
|
return; |
| 805 |
|
} |
| 806 |
|
} |
| 807 |
|
elseif ( 'multi' == $format_type ) { |
| 808 |
|
if ( !empty( $value ) && !is_array( $value ) ) |
|
@@ 811-824 (lines=14) @@
|
| 808 |
|
if ( !empty( $value ) && !is_array( $value ) ) |
| 809 |
|
$value = explode( ',', $value ); |
| 810 |
|
|
| 811 |
|
if ( 'checkbox' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) |
| 812 |
|
$field_type = 'checkbox'; |
| 813 |
|
elseif ( 'multiselect' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) |
| 814 |
|
$field_type = 'select'; |
| 815 |
|
elseif ( 'autocomplete' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) |
| 816 |
|
$field_type = 'select2'; |
| 817 |
|
elseif ( 'flexible' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) |
| 818 |
|
$field_type = 'flexible'; |
| 819 |
|
else { |
| 820 |
|
// Support custom integration |
| 821 |
|
do_action( 'pods_form_ui_field_pick_input_' . pods_var( self::$type . '_format_type', $options, 'single' ) . '_' . pods_var( self::$type . '_format_multi', $options, 'checkbox' ), $name, $value, $options, $pod, $id ); |
| 822 |
|
do_action( 'pods_form_ui_field_pick_input', pods_var( self::$type . '_format_type', $options, 'single' ), $name, $value, $options, $pod, $id ); |
| 823 |
|
return; |
| 824 |
|
} |
| 825 |
|
} |
| 826 |
|
else { |
| 827 |
|
// Support custom integration |