You appear to be a bot. Output may be restricted
Description
Check if the reschedule Tag already existsIf not then add to the options using bw_update_option() then empty out the bmt field for the next one
Usage
_oik_bmt_add_oik_bmt( $bw_bmt );
Parameters
- $bw_bmt
- ( mixed ) required –
Returns
voidSource
File name: oik-batchmove/admin/oik-batchmove-tags.phpLines:
1 to 16 of 16
function _oik_bmt_add_oik_bmt( $bw_bmt ) { $bmt = bw_array_get( $bw_bmt['args'], "bmt", null ); $bmt_exists = oik_bmt_check_relationship_exists( $bmt ); if ( $bmt_exists ) { p( "Reschedule already defined, try another Tag." ); $ok = false; } else { unset( $bw_bmt['args']['bmt'] ); bw_update_option( $bmt, $bw_bmt, "bw_bmts" ); // We don't need to add the bmt now! $bw_bmt['args']['bmt'] = ""; $ok = true; } return( $ok ); }View on GitHub View on Trac