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.
By allaniftrue on
Hello Everyone,
How do you find this module? It's just a simple implementation but it is very useful when you are working on two different environments.
Comments
Good idea. Whilst the URL is
Good idea. Whilst the URL is in the browser address bar, it is all too easy to make a mistake. I might give it a try.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
Thanks!
Thanks. Tell me how it goes :)
Views conflict
I just realized that the hook_init function conflicts with the views module. I might have to update it to other hooks.
I wouldn't use it simply
I wouldn't use it simply because it's not hosted on Drupal.org.
What's the difference?
Adding such a very minimal and simple module to drupal is such a big pain in the a**. Documentation alone would take a lot of time.
But anyway, the codes are view-able and you'd surely see how the module works whether it has something fishy or not if that's your concern.
Update
Just updated it to use hook_page_build instead. Works well now with views module.
There's already a module that does this
https://www.drupal.org/project/environment_indicator
Cool
Thanks for the link.