function userpoints_get_default_expiry_date in User Points 5.3
Same name and namespace in other branches
- 6 userpoints.module \userpoints_get_default_expiry_date()
- 7.2 userpoints.module \userpoints_get_default_expiry_date()
- 7 userpoints.module \userpoints_get_default_expiry_date()
2 calls to userpoints_get_default_expiry_date()
File
- ./
userpoints.module, line 742
Code
function userpoints_get_default_expiry_date() {
$expirydate = userpoints_date_to_timestamp(variable_get(USERPOINTS_EXPIREON_DATE, NULL));
if ($expirydate < time()) {
$expirydate = variable_get(USERPOINTS_EXPIREAFTER_DATE, NULL);
if ($expirydate) {
$expirydate = time() + $expirydate;
}
}
return $expirydate;
}