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.
I've written a module that provides a block, but I want my block to provide different content based on which site I'm on. Is there any way to do this short of checking $_domain?
Comments
Comment #1
agentrickardDepends on what the content is. If it's node content, node access will handle this automatically. Other types of content or data would have to be checked manually.
Comment #2
agentrickard