function _hosting_package_plural_map in Hostmaster (Aegir) 6
2 calls to _hosting_package_plural_map()
- hosting_package_instance_sync in modules/
hosting/ package/ hosting_package.instance.inc - Generate instances to reference nodes to releases.
- hosting_package_sync in modules/
hosting/ package/ hosting_package.module - Sync the package and package release nodes with the information retrieved from the verify task
File
- modules/
hosting/ package/ hosting_package.module, line 354
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;
}