function _enrolments_export_plugin_mapping in Open Social 10.2.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.install \_enrolments_export_plugin_mapping()
- 8.8 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.install \_enrolments_export_plugin_mapping()
- 10.3.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.install \_enrolments_export_plugin_mapping()
- 10.0.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.install \_enrolments_export_plugin_mapping()
- 10.1.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.install \_enrolments_export_plugin_mapping()
Retrieve a mapped list of normal plugins and enrollment plugins.
Parameters
bool $reverse: Flip the keys and value of the return array.
Return value
array A mapped list of normal plugins and their counterpart enrollment plugins.
1 call to _enrolments_export_plugin_mapping()
- _enrolments_export_plugin_access in modules/
social_features/ social_event/ modules/ social_event_an_enroll_enrolments_export/ social_event_an_enroll_enrolments_export.install - Sets the access for the export plugins.
File
- modules/
social_features/ social_event/ modules/ social_event_an_enroll_enrolments_export/ social_event_an_enroll_enrolments_export.install, line 80 - Install, update and uninstall functions for the AN Enroll Export module.
Code
function _enrolments_export_plugin_mapping($reverse = FALSE) : array {
$mapping = [
'display_name' => 'enrolment_display_name',
'user_email' => 'enrolment_user_email',
'user_first_name' => 'enrolment_user_first_name',
'user_last_name' => 'enrolment_user_last_name',
'user_registration' => 'enrolment_user_registration',
];
return $reverse ? array_flip($mapping) : $mapping;
}