You are here

function userpoints_date_to_timestamp in User Points 5.3

Same name and namespace in other branches
  1. 6 userpoints.module \userpoints_date_to_timestamp()
  2. 7.2 userpoints.module \userpoints_date_to_timestamp()
  3. 7 userpoints.module \userpoints_date_to_timestamp()
2 calls to userpoints_date_to_timestamp()
userpoints_admin_settings in ./userpoints.module
menu callback for settings form.
userpoints_get_default_expiry_date in ./userpoints.module

File

./userpoints.module, line 1480

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']);
  }
}