function update_get_project_name
update_get_project_name($file)
Determines what project a given file object belongs to.
Parameters
$file: A file object as returned by system_get_files_database().
Return value
The canonical project short name.
See also
File
- modules/update/update.compare.inc, line 249
- Code required only when comparing available updates to existing data.
Code
function update_get_project_name($file) { $project_name = ''; if (isset($file->info['project'])) { $project_name = $file->info['project']; } elseif (isset($file->info['package']) && (strpos($file->info['package'], 'Core') === 0)) { $project_name = 'drupal'; } return $project_name; }
© 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_get_project_name/7.x