Index: profile_csv.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/profile_csv/profile_csv.module,v retrieving revision 1.9.2.1 diff -u -r1.9.2.1 profile_csv.module --- profile_csv.module 24 Mar 2007 04:02:14 -0000 1.9.2.1 +++ profile_csv.module 5 Dec 2007 16:15:04 -0000 @@ -206,6 +206,10 @@ unset($user_data['data']); $info = array_merge($user_data, $profile_data); //all of the valid fields in ['data'] should have been picked out in _profile_csv_get_profile, so unset it + + // Enable other modules to add in user data. + $user_info = module_invoke_all('profile_csv_user_data', $uid); + $info = array_merge($info, $user_info); foreach($info as $value) { $new_info[] = '"' . str_replace('"', '""', $value) . '"'; @@ -276,6 +280,10 @@ foreach(_profile_csv_get_profile_fields() as $field) { $row[] = '"'. $field['title'] .'"'; } + + // Enable other modules to add in user data. + $header = module_invoke_all('profile_csv_header'); + $row = array_merge($row, $header); return implode(",", $row) ."\n"; } \ No newline at end of file