Customized travel widget

The County of Pueblo wanted to provide an interface to a commercial travel site on their home page, but every canned widget available did not match the style of the Pueblo site.

Although we didn't really want to, we had to create our own travel widget in Drupal.

In a Drupal module, we programmatically created a block (styled to match the Pueblo theme) and embedded a custom form into it. The form collects data from the user when he/she clicks on the submit button. Once the data has been validated, our travel widget sends the data as parameters through a URL into Kayak in a new window. The parameters filter the search so the user will see all matches on Kayak based on their search options from Pueblo.org.