function civicrm_entity_price_set_field_get_registration_access_callbacks_info in CiviCRM Entity 7.2
CiviCRM Entity Price Set Field Get Registration Access Callback Info
Sets up info hook to gather registration access callbacks
Parameters
null $id:
Return value
array
1 call to civicrm_entity_price_set_field_get_registration_access_callbacks_info()
- civicrm_entity_price_set_field_allow_registration in modules/
civicrm_entity_price_set_field/ includes/ civicrm_entity_price_set_field.event_registration.inc - Utility function to find modules with custom event registration access callbacks
File
- modules/
civicrm_entity_price_set_field/ includes/ civicrm_entity_price_set_field.event_registration.inc, line 16 - CiviCRM Entity Price Set Field, Form display formatter, event registration
Code
function civicrm_entity_price_set_field_get_registration_access_callbacks_info($id = NULL) {
$results = array();
foreach (module_implements('civicrm_entity_price_set_field_registration_access_callback_info') as $module) {
// Calling all modules implementing hook_hook_name and
// Returning results than pushing them into the $result array:
$result = module_invoke($module, 'civicrm_entity_price_set_field_registration_access_callback_info');
foreach ($result as $id => $r) {
if (!empty($r['callback'])) {
$results[$id] = $result;
}
}
}
if (empty($id)) {
return $results;
}
else {
return $results[$id];
}
}