You are here

function _enrolments_export_plugin_mapping in Open Social 8.8

Same name and namespace in other branches
  1. 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()
  2. 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()
  3. 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()
  4. 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()
  5. 10.2.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;
}