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