Use with Switchtheme module

2noame - August 19, 2009 - 03:40
Project:iUI
Version:6.x-1.0
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I love this module but it took me awhile to figure out how to provide an easy way for people to switch from iUi to my default theme and back. As is, once a user switches to this theme, they are pretty much locked in at this point. So what I did was use the following php snippet to create a page with the Switchtheme module block and then place that page as an item in my primary menu.

<?php
$block
= module_invoke('switchtheme', 'block', 'view', 0);
print
$block['content'];
?>

Now it works like magic and anyone can swiftly switch back and forth from iUi to the Default theme at will.

Thanks for the great module and I hope this tip helps someone out there.

 
 

Drupal is a registered trademark of Dries Buytaert.