social_event_an_enroll_enrolments_export.module in Open Social 8.5
Same filename and directory in other branches
- 8.9 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.module
- 8.6 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.module
- 8.7 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.module
- 8.8 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.module
- 10.3.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.module
- 10.0.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.module
- 10.1.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.module
- 10.2.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.module
The Social Event An Enroll Enrolments Export module.
File
modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/social_event_an_enroll_enrolments_export.moduleView source
<?php
/**
* @file
* The Social Event An Enroll Enrolments Export module.
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\views\ViewExecutable;
/**
* Implements hook_form_alter().
*/
function social_event_an_enroll_enrolments_export_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if ((isset($form['views_bulk_operations_bulk_form']) || strpos($form_id, 'views_form_event_manage_enrollments_page_manage_enrollments') !== FALSE) && isset($form['output'][0]['#view'])) {
$view =& $form['output'][0]['#view'];
if ($view instanceof ViewExecutable && $view
->id() === 'event_manage_enrollments') {
$actions =& $form['header']['social_views_bulk_operations_bulk_form_enrollments_1']['actions'];
$action = 'social_event_enrolments_export_enrollments_action';
$actions[$action]['#access'] = FALSE;
unset($actions['#links'][$action]);
}
}
}
/**
* Implements hook_social_event_action_ACTION_ID_finish().
*/
function social_event_an_enroll_enrolments_export_social_event_managers_action_social_event_an_enroll_enrolments_export_action_finish($success) {
return social_event_enrolments_export_social_event_managers_action_social_event_enrolments_export_enrollments_action_finish($success);
}
Functions
Name![]() |
Description |
---|---|
social_event_an_enroll_enrolments_export_form_alter | Implements hook_form_alter(). |
social_event_an_enroll_enrolments_export_social_event_managers_action_social_event_an_enroll_enrolments_export_action_finish | Implements hook_social_event_action_ACTION_ID_finish(). |