function update_filter_project_info

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 drupal_parse_info_file().

Return value

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

See also

_update_process_info_list()

File

modules/update/update.compare.inc, line 820
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, drupal_map_assoc($whitelist));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!update!update.compare.inc/function/update_filter_project_info/7.x