mirror of
https://gitlab.unicamp.br/infimecc_drupal11_modules/ldap_groups_sync.git
synced 2026-03-10 10:27:40 -03:00
Adiciona submódulo ldap_courses_sync para sincronização de cursos via LDAP
Cria o módulo modules/ldap_courses_sync/ seguindo o mesmo padrão do ldap_research_groups_sync, com bundle `course`, campos field_course_* e field_user_courses, sincronização de membros via atributo LDAP, e aba "Courses Sync" no painel unificado. Também registra `courses` no módulo pai (routing, UnifiedAccessRulesForm e GlobalAccessRuleForm) para suporte a access rules unificadas. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
23
modules/ldap_courses_sync/ldap_courses_sync.install
Normal file
23
modules/ldap_courses_sync/ldap_courses_sync.install
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Arquivo de instalação para ldap_courses_sync.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_install().
|
||||
*/
|
||||
function ldap_courses_sync_install() {
|
||||
\Drupal::messenger()->addWarning(t('Please ensure your group type has the required fields: field_course_code, field_course_phone, field_course_mail, and field_course_department (for department reference).'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_uninstall().
|
||||
*/
|
||||
function ldap_courses_sync_uninstall() {
|
||||
// Remove configurações
|
||||
\Drupal::configFactory()->getEditable('ldap_courses_sync.settings')->delete();
|
||||
|
||||
\Drupal::messenger()->addStatus(t('LDAP Courses Sync module uninstalled.'));
|
||||
}
|
||||
Reference in New Issue
Block a user