Code: Select all
function job_before_update(&$data, $memberInfo, &$args){
$data['next_date'] = calc_next_date($data['service_date']);
return TRUE;
}
function calc_next_date($service_date){
return '1/1/2001';
}
When I edit a record, instead of getting 1/1/2001 in next_date, it remains blank.
What am I missing?
Once I see this basic hook work, I will be coding a proper calc_next_date(), of course.
Thanks!