You are here

function registration_type_get_names in Entity Registration 8.2

Same name and namespace in other branches
  1. 8 registration.module \registration_type_get_names()
  2. 7.2 registration.module \registration_type_get_names()
  3. 7 registration.module \registration_type_get_names()

Gets an array of all registration types, keyed by the name.

Return value

array A list of all registration types.

2 string references to 'registration_type_get_names'
RegistrationMetadataController::entityPropertyInfo in lib/registration.metadata.inc
RegistrationMetadataController::entityPropertyInfo in src/RegistrationMetadataController.php

File

./registration.module, line 1986

Code

function registration_type_get_names($name = NULL) {
  $types = registration_get_types();
  $data = array();
  foreach (array_keys($types) as $name) {
    $data[$name] = $name;
  }
  return $data;
}