You are here

function _hosting_package_plural_map in Hosting 7.4

Same name and namespace in other branches
  1. 5 package/hosting_package.module \_hosting_package_plural_map()
  2. 6.2 package/hosting_package.module \_hosting_package_plural_map()
  3. 7.3 package/hosting_package.module \_hosting_package_plural_map()

@todo document this function

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 406
Defines package node types

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;
}