Civicrm's enableDisable hook only uses three arguments.
Ensure drupal_write_record sets NULL values for contact_b when it is empty.