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