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.
Currently there is no way for modules to alter the current subsite. It would be nice if there was a hook into subsites_get_current() with which the current subsite can be defined.
Comment | File | Size | Author |
---|---|---|---|
#2 | subsite_detection_methods.patch | 2.55 KB | Cyberwolf |
Comments
Comment #1
Cyberwolf CreditAttribution: Cyberwolf commentedMy suggestion:
The subsites module itself will implement this hook as well.
I will provide a patch soon.
Comment #2
Cyberwolf CreditAttribution: Cyberwolf commentedAttaching the patch.
Comment #3
davyvdb CreditAttribution: davyvdb commented