I use the Rubik Admin theme which uses Tao as a base theme. This particular theme requires edits to the template.php file as outlined in the FAQ in order to work. I made the edits and it worked fine, the problem is that I use this theme for a multisite install, but not all of my sites use Smart Tabs. I don't know enough PHP to determine if there is a way to edit the template.php file so that it only applies the edits if Smart Tabs is loaded. So basically if it is loaded I want: menu_primary_local_tasks_smart_tabs(), otherwise, menu_primary_local_tasks() etc. I only use Smart Tabs with Revisioning and not all of my sites use that.
Comments
Comment #1
rdeboerTry using the following:
Comment #2
jon betts commented@RdeBoer - Thanks! That worked perfectly and now I know how to test if a module exists and is enabled!
Comment #3
rdeboerGreat!
Comment #5
paskainos commentedIs there perhaps a more permanent fix (patch)? Rubik is ca. 9,000 reported installs. I'm surprised this hasn't been more prevalent for other Smart tabs users.
Comment #6
rdeboerYou can implement the patch via a subtheme. That way you can independently upgrade both subtheme and base theme (in your case Rubik) without you having to reapply the change.
Here are a couple of links to article describing how you can create a subtheme. Will only take you a few minutes.
http://www.flink.com.au/tips-tricks/create-subtheme (for D7, but D6 is almost identical)
http://drupal.org/node/441088 (for D6, more detailed)
Comment #7
rdeboer