function change_account_contribution() { $data = POST('data'); $contribute = intval($data['status']); $otx = new Otx(); if ($contribute) { $otx->enable_contribution(); $msg = _('You are now contributing to OTX.'); } else { $otx->disable_contribution(); $msg = _('You are not contributing to OTX anymore.'); } return array('msg' => $msg); }