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