I want to show the search form in multiple regions. As the block system only allows 1 region for the existing block, I gotta do that differently.

Could you give me a simple php snippet to include the search form in the respective page.tpl.php? - one can do this for the core search, so maybe it is nearly as easy for trip search.

Comments

dawehner’s picture

<?php
if (user_access('fulltext search') && (substr($_GET['q'], 0, 11) != 'trip_search')) {
      $form = drupal_get_form('trip_search_page', TRUE);
      print $form . variable_get('trip_search_block_message', t('Enclose phrases in double quotes ("").'));
}
?>
eigentor’s picture

Status: Active » Closed (fixed)

Thx dereine, this works :))