function registration_type_get_names in Entity Registration 7.2
Same name and namespace in other branches
- 8.2 registration.module \registration_type_get_names()
- 8 registration.module \registration_type_get_names()
- 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'
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;
}