Exemplo n.º 1
0
function add_points(OTS_Account $account, $number_of_points)
{
    if ($account->isLoaded()) {
        $account->setCustomField('premium_points', $account->getCustomField('premium_points') + $number_of_points);
        return true;
    } else {
        return false;
    }
}