Coding, Directory

drupal_set_message

This will help you location of the dir.

Location of your dir : drupal_set_message($form_id);    // know the root dir

 

/**
* Implements hook_form_FORM_ID_alter().
*/

function demo_form_alter(&$form, &$form_state, $form_id) {
// dpm($form);
drupal_set_message($form_id);
        switch($form_id){
case ‘rooms_booking_availability_search_form’:   // name of the root form_id

 

//using the devel to allocate the dir
$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’);
break;
}
}

// Add a #markup element containing your note and make it display at the top.

// Change labels for the ‘mail’ and ‘name’ elements. #type

Add your comments

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