@@ 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 | $options[ 'view_name' ] = 'select'; |
|
794 | } elseif ( 'radio' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) { |
|
795 | $options[ 'view_name' ] = 'radio'; |
|
796 | } elseif ( 'autocomplete' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) { |
|
797 | $options[ 'view_name' ] = 'select2'; |
|
798 | } elseif ( 'flexible' == pods_var( self::$type . '_format_single', $options, 'dropdown' ) ) { |
|
799 | $options[ 'view_name' ] = '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 ) ) { |
|
@@ 812-825 (lines=14) @@ | ||
809 | $value = explode( ',', $value ); |
|
810 | } |
|
811 | ||
812 | if ( 'checkbox' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) { |
|
813 | $options[ 'view_name' ] = 'checkbox'; |
|
814 | } elseif ( 'multiselect' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) { |
|
815 | $options[ 'view_name' ] = 'select'; |
|
816 | } elseif ( 'autocomplete' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) { |
|
817 | $options[ 'view_name' ] = 'select2'; |
|
818 | } elseif ( 'flexible' == pods_var( self::$type . '_format_multi', $options, 'checkbox' ) ) { |
|
819 | $options[ 'view_name' ] = 'flexible'; |
|
820 | } else { |
|
821 | // Support custom integration |
|
822 | 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 ); |
|
823 | do_action( 'pods_form_ui_field_pick_input', pods_var( self::$type . '_format_type', $options, 'single' ), $name, $value, $options, $pod, $id ); |
|
824 | return; |
|
825 | } |
|
826 | } |
|
827 | else { |
|
828 | // Support custom integration |