Is it possible to add a title attribute through a form_alter to element #type 'password_confirm'?
For example, I have a form with the following fields:
- password confirm
To apply a title attribute to the email element is fine...
$form['account']['mail']['#attributes']['title'] = 'enter your email address';
When I dump the contents of $form in search for the input elements for 'password_confirm', I only get the following:
[pass] => Array ( [#type] => password_confirm [#size] => 25 [#description] => We will not spam you or give your email address to third parties. [#required] => 1 )
I'm not seeing 'pass1' and 'pass2' in the array.
Please could someone point me in the right direction?