| @@ 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' ] ) |
|
| @@ 2394-2409 (lines=16) @@ | ||
| 2391 | 'options' |
|
| 2392 | ); |
|
| 2393 | ||
| 2394 | foreach ( $exclude as $k => $exclude_field ) { |
|
| 2395 | $aliases = array( $exclude_field ); |
|
| 2396 | ||
| 2397 | if ( is_array( $exclude_field ) ) { |
|
| 2398 | $aliases = array_merge( array( $k ), $exclude_field ); |
|
| 2399 | $exclude_field = $k; |
|
| 2400 | } |
|
| 2401 | ||
| 2402 | foreach ( $aliases as $alias ) { |
|
| 2403 | if ( isset( $options[ $alias ] ) ) { |
|
| 2404 | $field[ $exclude_field ] = pods_trim( $options[ $alias ] ); |
|
| 2405 | ||
| 2406 | unset( $options[ $alias ] ); |
|
| 2407 | } |
|
| 2408 | } |
|
| 2409 | } |
|
| 2410 | ||
| 2411 | if ( strlen( $field[ 'label' ] ) < 1 ) |
|
| 2412 | $field[ 'label' ] = $field[ 'name' ]; |
|
| @@ 2831-2846 (lines=16) @@ | ||
| 2828 | 'status' |
|
| 2829 | ); |
|
| 2830 | ||
| 2831 | foreach ( $exclude as $k => $exclude_field ) { |
|
| 2832 | $aliases = array( $exclude_field ); |
|
| 2833 | ||
| 2834 | if ( is_array( $exclude_field ) ) { |
|
| 2835 | $aliases = array_merge( array( $k ), $exclude_field ); |
|
| 2836 | $exclude_field = $k; |
|
| 2837 | } |
|
| 2838 | ||
| 2839 | foreach ( $aliases as $alias ) { |
|
| 2840 | if ( isset( $options[ $alias ] ) ) { |
|
| 2841 | $object[ $exclude_field ] = pods_trim( $options[ $alias ] ); |
|
| 2842 | ||
| 2843 | unset( $options[ $alias ] ); |
|
| 2844 | } |
|
| 2845 | } |
|
| 2846 | } |
|
| 2847 | ||
| 2848 | if ( 'helper' == $object[ 'type' ] ) |
|
| 2849 | $object[ 'options' ][ 'helper_type' ] = $object[ 'helper_type' ]; |
|