function _hosting_package_plural_map in Hosting 6.2
Same name and namespace in other branches
- 5 package/hosting_package.module \_hosting_package_plural_map()
- 7.4 package/hosting_package.module \_hosting_package_plural_map()
- 7.3 package/hosting_package.module \_hosting_package_plural_map()
2 calls to _hosting_package_plural_map()
- hosting_package_instance_sync in package/
hosting_package.instance.inc - Generate instances to reference nodes to releases.
- hosting_package_sync in package/
hosting_package.module - Sync the package and package release nodes with the information retrieved from the verify task
File
- package/
hosting_package.module, line 311
Code
function _hosting_package_plural_map($key = null) {
static $plural_map = array(
'modules' => 'module',
'themes' => 'theme',
'profiles' => 'profile',
'engines' => 'engine',
'platforms' => 'platform',
);
if (is_null($key)) {
return $plural_map;
}
return array_key_exists($key, $plural_map) ? $plural_map[$key] : $key;
}