By greEd-1 on
I have modified the file user.module so that the login block displays a custom text image for username and password but I can't seem to remove the original ":" I have looked all through the user.module file and cannot figure out how to remove it.
Let me try and clarify a bit. For example
Username: ==== I can remove the username text but not the ":"
Password: ==== I can remove the password text but not the ":"
Where can I find the reference to remove the ":"?
Comments
Not the right place
Editing user.module is not really the right place for this.
You can define the function themename_form_item() in your theme and implement your own version of the function theme_form_item() in theme.inc. This allows you to override any form item in Drupal consistently and cleanly.
I understand ...
Ok, but that doesn't answer my question. Refer to original post.
How did you remove the password field?
I was wondering how you removed the password field. I only want my users to have to enter their username.
CSS
input#edit-pass {display:none;}--
Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.
Does anyone know how to remove the colon?
Three year old question... but no answer...
Override the
Override the theme_form_element function (this is present in includes/form.inc) in your theme.
Overwrite this line:
$output .= ' '. t('!title: !required', array('!title' => filter_xss_admin($title), '!required' => $required)) ."\n";
Thanks,
Sudeep
This one removes all the
This one removes all the colon (:) in all form fields all throughout the site. I only want to get rid of the colons in username and password upon login. Fastcompany.com managed to do this. Login form has no : but all other form fields remains the same.