Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I am writing a module right now that changes the theme. This is a site specific module, so the only two themes are a "high bandwidth" theme and a "low-bandwidth" theme.
On each page I am generating a link back to that page that allows the theme to switch. For example. if you were at mysite.com/about, then there would be a link a to mysite.com/lo/about, which when you click on it, the theme changes to the low bandwidth version.
I am in the process of writing a module that will take a date as part of creating a node. If there were a form_date() function, I would use that. Because there isn't, I'm here asking for advice.
What is the best and most consistent way to create a date entry on a form?
Is there anyway to get Trip Search to pass the variables in the URL ala Google or even the Drupal search so that its easy for users to go back to a search later.