@@ 1708-1723 (lines=16) @@ | ||
1705 | 'fields' |
|
1706 | ); |
|
1707 | ||
1708 | foreach ( $exclude as $k => $exclude_field ) { |
|
1709 | $aliases = array( $exclude_field ); |
|
1710 | ||
1711 | if ( is_array( $exclude_field ) ) { |
|
1712 | $aliases = array_merge( array( $k ), $exclude_field ); |
|
1713 | $exclude_field = $k; |
|
1714 | } |
|
1715 | ||
1716 | foreach ( $aliases as $alias ) { |
|
1717 | if ( isset( $options[ $alias ] ) ) { |
|
1718 | $pod[ $exclude_field ] = pods_trim( $options[ $alias ] ); |
|
1719 | ||
1720 | unset( $options[ $alias ] ); |
|
1721 | } |
|
1722 | } |
|
1723 | } |
|
1724 | ||
1725 | if ( pods_tableless() && !in_array( $pod[ 'type' ], array( 'settings', 'table' ) ) ) { |
|
1726 | if ( 'pod' == $pod[ 'type' ] ) |
|
@@ 2401-2416 (lines=16) @@ | ||
2398 | 'options' |
|
2399 | ); |
|
2400 | ||
2401 | foreach ( $exclude as $k => $exclude_field ) { |
|
2402 | $aliases = array( $exclude_field ); |
|
2403 | ||
2404 | if ( is_array( $exclude_field ) ) { |
|
2405 | $aliases = array_merge( array( $k ), $exclude_field ); |
|
2406 | $exclude_field = $k; |
|
2407 | } |
|
2408 | ||
2409 | foreach ( $aliases as $alias ) { |
|
2410 | if ( isset( $options[ $alias ] ) ) { |
|
2411 | $field[ $exclude_field ] = pods_trim( $options[ $alias ] ); |
|
2412 | ||
2413 | unset( $options[ $alias ] ); |
|
2414 | } |
|
2415 | } |
|
2416 | } |
|
2417 | ||
2418 | if ( strlen( $field[ 'label' ] ) < 1 ) |
|
2419 | $field[ 'label' ] = $field[ 'name' ]; |
|
@@ 2838-2853 (lines=16) @@ | ||
2835 | 'status' |
|
2836 | ); |
|
2837 | ||
2838 | foreach ( $exclude as $k => $exclude_field ) { |
|
2839 | $aliases = array( $exclude_field ); |
|
2840 | ||
2841 | if ( is_array( $exclude_field ) ) { |
|
2842 | $aliases = array_merge( array( $k ), $exclude_field ); |
|
2843 | $exclude_field = $k; |
|
2844 | } |
|
2845 | ||
2846 | foreach ( $aliases as $alias ) { |
|
2847 | if ( isset( $options[ $alias ] ) ) { |
|
2848 | $object[ $exclude_field ] = pods_trim( $options[ $alias ] ); |
|
2849 | ||
2850 | unset( $options[ $alias ] ); |
|
2851 | } |
|
2852 | } |
|
2853 | } |
|
2854 | ||
2855 | if ( 'helper' == $object[ 'type' ] ) |
|
2856 | $object[ 'options' ][ 'helper_type' ] = $object[ 'helper_type' ]; |