function uif_get_strtotime_value in User Import Framework 7
Helper function to convert date string to timestamp.
1 string reference to 'uif_get_strtotime_value'
- uif_uif_supported_fields in ./
uif.admin.inc - Implementation of hook_uif_supported_fields().
File
- ./
uif.admin.inc, line 1039 - Simple, extensible user import from a CSV file.
Code
function uif_get_strtotime_value($account, $field_info, $value) {
// BUG: do strtotime() check in validation?
$timestamp = strtotime($value);
return $timestamp < 1 ? strtotime('now') : $timestamp;
}