function update_filter_project_info
Filters the project .info data to only save attributes we need.
Parameters
array $info: Array of .info file data as returned by drupal_parse_info_file().
Return value
Array of .info file data we need for the update manager.
See also
1 call to update_filter_project_info()
- _update_process_info_list in modules/
update/ update.compare.inc - Populates an array of project data.
File
-
modules/
update/ update.compare.inc, line 826
Code
function update_filter_project_info($info) {
$whitelist = array(
'_info_file_ctime',
'datestamp',
'major',
'name',
'package',
'project',
'project status url',
'version',
);
return array_intersect_key($info, drupal_map_assoc($whitelist));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.