API, Coding

Editing the open hotel theme in search form booking

Code:

<?php
/**
* Implements hook_form_FORM_ID_alter().
*/

function demo_form_alter(&$form, &$form_state, $form_id) {
dpm($form);
drupal_set_message(‘test’);
//$label[‘#title’] = t(‘Date Plan’);
//$form[‘edit-rooms-end-date’][‘#title’] = t(‘Date End’);
$form[‘rooms_date_range’][‘rooms_start_date’][‘#title’] = t(‘LEAVING ON’);
$form[‘rooms_date_range’][‘rooms_end_date’][‘#title’]= t(‘FOR’);

$form[‘conditions’][‘rooms’][‘#title’]= t(‘ROOMS’);

$form[‘rooms_fieldset’][‘table_header’][‘#markup’]= t(‘ADULTS | CHILD ‘);

$form[‘actions’][‘submit’][‘#value’]= t(‘FIND TOURS’);
}
Add this in your module then enable: filter the search using the txtsearch

Extension name:  demo.info

;$Id$
name = txtsearch
description = Provides a really neat widget for your site’s sidebar.
core = 7.x

 

Extension name: demo.module
<?php
/**
* Implements hook_form_FORM_ID_alter().
*/

function demo_form_alter(&$form, &$form_state, $form_id) {
dpm($form);
drupal_set_message(‘test’);
//$label[‘#title’] = t(‘Date Plan’);
//$form[‘edit-rooms-end-date’][‘#title’] = t(‘Date End’);
$form[‘rooms_date_range’][‘rooms_start_date’][‘#title’] = t(‘LEAVING ON’);
}

Add your comments

Loading Facebook Comments ...
Loading Disqus Comments ...