You are here

function registration_type_get_names in Entity Registration 7.2

Same name and namespace in other branches
  1. 8.2 registration.module \registration_type_get_names()
  2. 8 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.

1 string reference to 'registration_type_get_names'
RegistrationMetadataController::entityPropertyInfo in lib/registration.metadata.inc

File

./registration.module, line 2018

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