function userpoints_date_to_timestamp in User Points 6
Same name and namespace in other branches
- 5.3 userpoints.module \userpoints_date_to_timestamp()
- 7.2 userpoints.module \userpoints_date_to_timestamp()
- 7 userpoints.module \userpoints_date_to_timestamp()
3 calls to userpoints_date_to_timestamp()
- UserpointsTestCase::testDefaultExpireDate in tests/
userpoints_api.test - Changes the default expiration date in the administrative settings and then checks to ensure that it is saved/returned correctly.
- userpoints_admin_settings in ./
userpoints.module - menu callback for settings form.
- userpoints_get_default_expiry_date in ./
userpoints.module
File
- ./
userpoints.module, line 1626
Code
function userpoints_date_to_timestamp($date) {
//This takes the FAPI date form array and returns a timestamp
if ($date) {
return mktime(0, 0, 0, $date['month'], $date['day'], $date['year']);
}
}