Created
April 25, 2013 10:01
-
-
Save knibals/5458748 to your computer and use it in GitHub Desktop.
Select a specific theme by IP address (may be useful when THEMERS work collaboratively with DEV people)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file helpers.module | |
*/ | |
/** | |
* Implements hook_custom_theme(). | |
* Activer le theme uniquement pour le themer (par adresse IP) | |
*/ | |
function themehelpers_custom_theme() { | |
if ($_SERVER['REMOTE_ADDR'] == '192.168.1.12' && arg('0') != 'admin') { | |
return 'kyziah'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment