@@ 723-736 (lines=14) @@ | ||
720 | $ajax = false; |
|
721 | ||
722 | if ( 'single' == pods_var( self::$type . '_format_type', $options, 'single' ) ) { |
|
723 | if ( 'dropdown' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) |
|
724 | $field_type = 'select'; |
|
725 | elseif ( 'radio' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) |
|
726 | $field_type = 'radio'; |
|
727 | elseif ( 'autocomplete' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) |
|
728 | $field_type = 'select2'; |
|
729 | elseif ( 'flexible' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) |
|
730 | $field_type = 'flexible'; |
|
731 | else { |
|
732 | // Support custom integration |
|
733 | 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 ); |
|
734 | do_action( 'pods_form_ui_field_pick_input', pods_var( self::$type . '_format_type', $options, 'single' ), $name, $value, $options, $pod, $id ); |
|
735 | return; |
|
736 | } |
|
737 | } |
|
738 | elseif ( 'multi' == pods_var( self::$type . '_format_type', $options, 'single' ) ) { |
|
739 | if ( !empty( $value ) && !is_array( $value ) ) |
|
@@ 742-755 (lines=14) @@ | ||
739 | if ( !empty( $value ) && !is_array( $value ) ) |
|
740 | $value = explode( ',', $value ); |
|
741 | ||
742 | if ( 'checkbox' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) |
|
743 | $field_type = 'checkbox'; |
|
744 | elseif ( 'multiselect' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) |
|
745 | $field_type = 'select'; |
|
746 | elseif ( 'autocomplete' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) |
|
747 | $field_type = 'select2'; |
|
748 | elseif ( 'flexible' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) |
|
749 | $field_type = 'flexible'; |
|
750 | else { |
|
751 | // Support custom integration |
|
752 | 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 ); |
|
753 | do_action( 'pods_form_ui_field_pick_input', pods_var( self::$type . '_format_type', $options, 'single' ), $name, $value, $options, $pod, $id ); |
|
754 | return; |
|
755 | } |
|
756 | } |
|
757 | else { |
|
758 | // Support custom integration |