You appear to be a bot. Output may be restricted
Description
Validate the taxonomy to type relationship
Usage
_oik_x2t_x2t_validate( $add_x2t );
Parameters
- $add_x2t
- ( mixed ) optional default: 1 –
Returns
voidSource
File name: oik-types/admin/oik-x2t.phpLines:
1 to 25 of 25
function _oik_x2t_x2t_validate( $add_x2t=true ) { global $bw_x2t; $bw_x2t['args']['type'] = bw_array_get( $_REQUEST, "type", null ); $bw_x2t['args']['taxonomy'] = bw_array_get( $_REQUEST, "taxonomy", null ); $bw_x2t['args']['x2t'] = $bw_x2t['args']['type'] . "." . $bw_x2t['args']['taxonomy']; // $bw_x2t['args']['hierarchical'] = bw_array_get( $_REQUEST, "hierarchical", null ); // $bw_x2t['args']['title'] = bw_array_get( $_REQUEST, "title", null ); bw_trace2( $bw_x2t, "bw_x2t" ); $ok = oik_diy_validate_x2t( $bw_x2t['args']['x2t'] ); // validate the fields and add the x2t IF it's OK to add // $add_x2t = bw_array_get( $_REQUEST, "_oik_x2t_add_oik_x2t", false ); if ( $ok ) { if ( $add_x2t ) { $ok = _oik_x2t_add_oik_x2t( $bw_x2t ); } else { $ok = _oik_x2t_update_x2t( $bw_x2t ); } } return( $ok ); }View on GitHub