| @@ 1722-1737 (lines=16) @@ | ||
| 1719 | 'fields' |
|
| 1720 | ); |
|
| 1721 | ||
| 1722 | foreach ( $exclude as $k => $exclude_field ) { |
|
| 1723 | $aliases = array( $exclude_field ); |
|
| 1724 | ||
| 1725 | if ( is_array( $exclude_field ) ) { |
|
| 1726 | $aliases = array_merge( array( $k ), $exclude_field ); |
|
| 1727 | $exclude_field = $k; |
|
| 1728 | } |
|
| 1729 | ||
| 1730 | foreach ( $aliases as $alias ) { |
|
| 1731 | if ( isset( $options[ $alias ] ) ) { |
|
| 1732 | $pod[ $exclude_field ] = pods_trim( $options[ $alias ] ); |
|
| 1733 | ||
| 1734 | unset( $options[ $alias ] ); |
|
| 1735 | } |
|
| 1736 | } |
|
| 1737 | } |
|
| 1738 | ||
| 1739 | if ( pods_tableless() && !in_array( $pod[ 'type' ], array( 'settings', 'table' ) ) ) { |
|
| 1740 | if ( 'pod' == $pod[ 'type' ] ) |
|
| @@ 2415-2430 (lines=16) @@ | ||
| 2412 | 'options' |
|
| 2413 | ); |
|
| 2414 | ||
| 2415 | foreach ( $exclude as $k => $exclude_field ) { |
|
| 2416 | $aliases = array( $exclude_field ); |
|
| 2417 | ||
| 2418 | if ( is_array( $exclude_field ) ) { |
|
| 2419 | $aliases = array_merge( array( $k ), $exclude_field ); |
|
| 2420 | $exclude_field = $k; |
|
| 2421 | } |
|
| 2422 | ||
| 2423 | foreach ( $aliases as $alias ) { |
|
| 2424 | if ( isset( $options[ $alias ] ) ) { |
|
| 2425 | $field[ $exclude_field ] = pods_trim( $options[ $alias ] ); |
|
| 2426 | ||
| 2427 | unset( $options[ $alias ] ); |
|
| 2428 | } |
|
| 2429 | } |
|
| 2430 | } |
|
| 2431 | ||
| 2432 | if ( strlen( $field[ 'label' ] ) < 1 ) |
|
| 2433 | $field[ 'label' ] = $field[ 'name' ]; |
|
| @@ 2857-2872 (lines=16) @@ | ||
| 2854 | 'status' |
|
| 2855 | ); |
|
| 2856 | ||
| 2857 | foreach ( $exclude as $k => $exclude_field ) { |
|
| 2858 | $aliases = array( $exclude_field ); |
|
| 2859 | ||
| 2860 | if ( is_array( $exclude_field ) ) { |
|
| 2861 | $aliases = array_merge( array( $k ), $exclude_field ); |
|
| 2862 | $exclude_field = $k; |
|
| 2863 | } |
|
| 2864 | ||
| 2865 | foreach ( $aliases as $alias ) { |
|
| 2866 | if ( isset( $options[ $alias ] ) ) { |
|
| 2867 | $object[ $exclude_field ] = pods_trim( $options[ $alias ] ); |
|
| 2868 | ||
| 2869 | unset( $options[ $alias ] ); |
|
| 2870 | } |
|
| 2871 | } |
|
| 2872 | } |
|
| 2873 | ||
| 2874 | if ( 'helper' == $object[ 'type' ] ) |
|
| 2875 | $object[ 'options' ][ 'helper_type' ] = $object[ 'helper_type' ]; |
|