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

John_B’s picture

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

allaniftrue’s picture

Thanks. Tell me how it goes :)

allaniftrue’s picture

I just realized that the hook_init function conflicts with the views module. I might have to update it to other hooks.

Jaypan’s picture

I wouldn't use it simply because it's not hosted on Drupal.org.

allaniftrue’s picture

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.

allaniftrue’s picture

Just updated it to use hook_page_build instead. Works well now with views module.

allaniftrue’s picture

Thanks for the link.