|
@@ 1454-1462 (lines=9) @@
|
| 1451 |
|
if ( pods_tableless() ) |
| 1452 |
|
$pod_params[ 'storage' ] = 'meta'; |
| 1453 |
|
} |
| 1454 |
|
elseif ( 'taxonomy' == $pod_params[ 'type' ] ) { |
| 1455 |
|
if ( empty( $pod_params[ 'name' ] ) ) |
| 1456 |
|
return pods_error( 'Please enter a Name for this Pod', $this ); |
| 1457 |
|
|
| 1458 |
|
$pod_params[ 'storage' ] = $params->create_storage_taxonomy; |
| 1459 |
|
|
| 1460 |
|
if ( pods_tableless() ) |
| 1461 |
|
$pod_params[ 'storage' ] = ( function_exists( 'get_term_meta' ) ? 'meta' : 'none' ); |
| 1462 |
|
} |
| 1463 |
|
elseif ( 'pod' == $pod_params[ 'type' ] ) { |
| 1464 |
|
if ( empty( $pod_params[ 'name' ] ) ) |
| 1465 |
|
return pods_error( 'Please enter a Name for this Pod', $this ); |
|
@@ 1463-1471 (lines=9) @@
|
| 1460 |
|
if ( pods_tableless() ) |
| 1461 |
|
$pod_params[ 'storage' ] = ( function_exists( 'get_term_meta' ) ? 'meta' : 'none' ); |
| 1462 |
|
} |
| 1463 |
|
elseif ( 'pod' == $pod_params[ 'type' ] ) { |
| 1464 |
|
if ( empty( $pod_params[ 'name' ] ) ) |
| 1465 |
|
return pods_error( 'Please enter a Name for this Pod', $this ); |
| 1466 |
|
|
| 1467 |
|
if ( pods_tableless() ) { |
| 1468 |
|
$pod_params[ 'type' ] = 'post_type'; |
| 1469 |
|
$pod_params[ 'storage' ] = 'meta'; |
| 1470 |
|
} |
| 1471 |
|
} |
| 1472 |
|
elseif ( 'settings' == $pod_params[ 'type' ] ) { |
| 1473 |
|
$pod_params[ 'name' ] = $params->create_setting_name; |
| 1474 |
|
$pod_params[ 'label' ] = ( !empty( $params->create_label_title ) ? $params->create_label_title : ucwords( str_replace( '_', ' ', $params->create_setting_name ) ) ); |