copyValues($params); $edit = ($actionLog->id) ? TRUE : FALSE; if ($edit) { CRM_Utils_Hook::pre('edit', 'ActionLog', $actionLog->id, $actionLog); } else { CRM_Utils_Hook::pre('create', 'ActionLog', NULL, $actionLog); } $actionLog->save(); if ($edit) { CRM_Utils_Hook::post('edit', 'ActionLog', $actionLog->id, $actionLog); } else { CRM_Utils_Hook::post('create', 'ActionLog', NULL, $actionLog); } return $actionLog; } }