Hi,

I'm trying to use the hint module to insert text inside the a search form from the faceted search module.

if I use this code :

// CUSTOMISATION of the form
function faceted_custom_form_alter(&$form, $form_state, $form_id) {
  switch ($form_id) {
    case 'faceted_search_ui_form_1':
      $form['keywords']['#title'] = t('Type keywords search');
      hint_set_hint($form['keywords']['#default_value'], t('Enter your search here...'));
      $form['keywords']['#size'] = 35;
      break;
  }
}

I've got a warning message saying that the htmlspecialchars() function is waiting for a parameter...

I make it work with this code

// CUSTOMISATION of the form
function faceted_custom_form_alter(&$form, $form_state, $form_id) {
  switch ($form_id) {
    case 'faceted_search_ui_form_1':
      $form['keywords']['#title'] =  t('Type keywords search');
      unset($form['keywords']['#default_value']);
      $form['keywords']['#hint'] = t('Enter your search here...');
      $form['keywords']['#size'] = 35;
      break;
  }
}

I'd like to know if the problem comes from the hint module.

Thanks