function unpublishMailing($mailingId) { $d['errStatus'] = xmailing::updateOneMailing($mailingId, '0'); return $d['errStatus']; }