I'd like to set the default input format depending on the chosen theme. Background: I'm creating a mobile version of my site using a different theme and don't want to show images. So I'd like to define an input format which doesn't allow img tags and which should be used only in my mobile theme.
If anyone has an idea how to do this using the template.php, please tell me.
Comments
Comment #1
dragonwize commentedThat is out of the scope of this module. You are talking about changing the format on display for existing content which is a very tough and a possible security issue depending on how your formats were setup.
Your best bet is probably either using display=none in css or strip the image tags out of the final HTML being sent to the browser.