1 update.compare.inc update_filter_project_info($info)

Filters the project .info data to only save attributes we need.

Parameters

array $info: Array of .info file data as returned by backdrop_parse_info_file().

Return value

Array of .info file data we need for the update manager.:

See also

_update_process_info_list()

File

core/modules/update/update.compare.inc, line 853
Code required only when comparing available updates to existing data.

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, backdrop_map_assoc($whitelist));
}