@@ 24-29 (lines=6) @@ | ||
21 | $sql = apply_filters( 'pods_query_sql', $sql, $error, $results_error, $no_results_error ); |
|
22 | $sql = $podsdata->get_sql($sql); |
|
23 | ||
24 | if ( is_array( $error ) ) { |
|
25 | if ( !is_array( $sql ) ) |
|
26 | $sql = array( $sql, $error ); |
|
27 | ||
28 | $error = 'Database Error'; |
|
29 | } |
|
30 | ||
31 | if ( 1 == pods_v( 'pods_debug_sql_all', 'get', 0 ) && is_user_logged_in() && pods_is_admin( array( 'pods' ) ) ) { |
|
32 | $debug_sql = $sql; |
|
@@ 1807-1812 (lines=6) @@ | ||
1804 | * @link http://pods.io/docs/pods-group-add/ |
|
1805 | */ |
|
1806 | function pods_group_add ( $pod, $label, $fields, $context = 'normal', $priority = 'default', $type = null ) { |
|
1807 | if ( !is_array( $pod ) && null !== $type ) { |
|
1808 | $pod = array( |
|
1809 | 'name' => $pod, |
|
1810 | 'type' => $type |
|
1811 | ); |
|
1812 | } |
|
1813 | ||
1814 | pods_meta()->group_add( $pod, $label, $fields, $context, $priority ); |
|
1815 | } |