Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Request for CAS integration.
Comment | File | Size | Author |
---|---|---|---|
#2 | cas.inc_.txt | 1.34 KB | g011um |
Comments
Comment #0.0
TimG1 CreditAttribution: TimG1 commentedAdded token link to other issue.
Comment #1
WebbehSee https://drupal.org/comment/8244725#comment-8244725 for a solution for this that uses Feeds and CAS.
Comment #2
g011um CreditAttribution: g011um commentedUsing locations.inc as a template, I put this together. Should be placed in the supported folder as cas.inc.
It adds a "CAS username" value to the mapping dropdown, and uses the cas_user_update function from the CAS module to update the CAS username field.
I can't promise it's the best code I've written -- my last Drupal development was with Drupal 5.x -- but it seems to work in our Druapl 7 environment.
Comment #3
gisleSupport for fields from contributed projects should be done by implementing
hook_field_user_import_supported_alter()
in the project that implements the field, not by adding bloat to this project.It has been five years. Closing as outdated.