Active
Project:
Hint
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2012 at 21:59 UTC
Updated:
16 Feb 2012 at 21:59 UTC
Hi I have configured hint to work with user-register template. It works like a charm for email and name input but not for password because there is a javascript function to match password.
Here is my preprocess function:
function ninesixty_preprocess_user_register(&$vars) {
unset($vars['form']['name']['#title']);
unset($vars['form']['name']['#description']);
$vars['form']['name']['#hint'] = t('Nom');
unset($vars['form']['mail']['#title']);
unset($vars['form']['mail']['#description']);
$vars['form']['mail']['#hint'] = t('Email');
unset($vars['form']['pass']['pass1']['#title']);
unset($vars['form']['pass']['pass1']['#description']);
$vars['form']['pass']['pass1']['#hint'] = t('Password');
unset($vars['form']['pass']['pass2']['#title']);
unset($vars['form']['pass']['pass2']['#description']);
$vars['form']['pass']['pass2']['#hint'] = t('Confirm Password');
// That's where $form_markup is created
$vars['form_markup'] = drupal_render($vars['form']);
Is it a bug ?