The function '_bootstrap_process_input' in process.inc contains some logic for applying tooltips to elements. The right side of the if-condition, however, will always evaluate to TRUE:

if (!empty($element['#type']) && ($element['#type'] !== 'checkbox' || $element['#type'] !== 'radio' || $element['#type'] !== 'checkboxes' || $element['#type'] !== 'radios')) { ... }

Since $element['#type'] can't be equal to more than one of those values, the OR logic plus the !== comparison means that at least 3 of those 4 comparisons will always be true. Locally, I've changed it to use AND logic in place of the OR operators.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cpierce42’s picture

I went ahead and applied mmillford's suggested fix, worked for me. Made a patch.

cpierce42’s picture

Status: Active » Needs review
markhalliwell’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#2461945: Refactor "smart form descriptions" (via tooltips)

Sorry, just saw this issue. This has been superseded by this related issue.