public function UcAddressesDateFieldHandler::validateValue in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 handlers/uc_addresses.handlers.inc \UcAddressesDateFieldHandler::validateValue()
Implements UcAddressesFieldHandler::validateValue().
Makes sure the value is converted to a timestamp.
Overrides UcAddressesFieldHandler::validateValue
File
- handlers/
uc_addresses.handlers.inc, line 267 - Field handlers for Ubercart Addresses address fields:
Class
- UcAddressesDateFieldHandler
- Class for the created/modified field.
Code
public function validateValue(&$value) {
$value = mktime(0, 0, 0, $value['month'], $value['day'], $value['year']);
}