Filters the project .info data to only save attributes we need.
array $info: Array of .info file data as returned by drupal_parse_info_file().
$additional_whitelist: (optional) Array of additional elements to be collected from the .info file. Defaults to array().
Array of .info file data we need for the update manager.
function update_filter_project_info($info, $additional_whitelist = array()) {
$whitelist = array(
'_info_file_ctime',
'datestamp',
'major',
'name',
'package',
'project',
'project status url',
'version',
);
$whitelist = array_merge($whitelist, $additional_whitelist);
return array_intersect_key($info, drupal_map_assoc($whitelist));
}