Index: html5_tools_forms/html5_tools_forms.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/html5_tools/html5_tools_forms/html5_tools_forms.module,v
retrieving revision 1.3
diff -u -p -r1.3 html5_tools_forms.module
--- html5_tools_forms/html5_tools_forms.module 9 Sep 2010 13:54:29 -0000 1.3
+++ html5_tools_forms/html5_tools_forms.module 20 Sep 2010 19:36:01 -0000
@@ -63,6 +63,16 @@ function html5_tools_forms_form_user_reg
}
/**
+* Implementation of hook_form_FORM_ID_alter().
+*/
+function html5_tools_forms_form_user_profile_form_alter(&$form, &$form_state) {
+ // Modify the user profile form to use an email field.
+ if ($form['account']['mail']['#type'] == 'textfield') {
+ $form['account']['mail']['#type'] = 'emailfield';
+ }
+}
+
+/**
* Add our own process function to cck number elements
*/
function html5_tools_forms_elements() {