function registration_get_registration_instances in Entity Registration 7
Same name and namespace in other branches
- 8.2 registration.module \registration_get_registration_instances()
- 8 registration.module \registration_get_registration_instances()
- 7.2 registration.module \registration_get_registration_instances()
Return all registration field instances.
Return value
array A list of field instances
6 calls to registration_get_registration_instances()
- RegistrationStandardTestCase::testRegistrationFieldCreate in tests/
registration.test - Tests if registration fields were created successfully, and associated with an entity.
- registration_admin_paths in ./
registration.module - Implements hook_admin_paths().
- registration_entity_set_default_settings in ./
registration.module - Sets the the registration entity settings to the deafults.
- registration_menu in ./
registration.module - Implements hook_menu().
- registration_update_7104 in ./
registration.install - Updates settings for multiple registration limits and slots/spaces renaming.
File
- ./
registration.module, line 1377
Code
function registration_get_registration_instances($params = array()) {
$registration_fields = field_read_fields(array(
'type' => 'registration',
));
$registration_instances = array();
if (!empty($registration_fields)) {
$field_name = array(
'field_name' => array_keys($registration_fields),
);
$params = array_merge($field_name, $params);
$registration_instances = field_read_instances($params);
}
return $registration_instances;
}