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’]=…

Continue Reading

CMS, Coding

drupal_set_message

To test the txt location of your block or code use this code :   drupal_set_message(‘test’); After you have seen your code location you can then delete. Syntax function demo_form_alter(&$form, &$form_state, $form_id) { dpm($form);   drupal_set_message(‘test’); } Remember the code: drupal_set_message(‘test’);   dpm($form);    allocate the devel of your coding