I got Hint working with date_popup fields in the following way:
function mymodule_element_info_alter(&$type) {
if (array_key_exists('date_popup', $type)) {
$type['date_popup']['#process'][] = 'mymodule_date_popup_process';
}
}
function mymodule_date_popup_process($element, &$form_state, $form) {
$class = 'hint-enabled';
if (array_key_exists('date', $element)) {
$element['date']['#attributes']['title'] = $element['date']['#description'];
$element['date']['#attributes']['class'][] = $class;
unset($element['date']['#description']);
}
if (array_key_exists('time', $element)) {
$element['time']['#attributes']['title'] = $element['time']['#description'];
$element['time']['#attributes']['class'][] = $class;
unset($element['time']['#description']);
}
return $element;
}
It's pretty nice but has a little issue:
If you click into the date-field the first time the hint disappears without the date-popup popping up. You need to click a second time into the field.
Also you need to choose the appropriate date twice. Say, if you click the first time into the date field and you select a date in the popup, the popup disappears and the hint is still in the textfield. Only if you open the date-popup a second time (and click on the date again) you get the choosen date into the textfield.
Do you have any idea what's going wrong here?
I guess it might have something to do with jquery event handlers but I didn't dig into it.