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

Steven’s picture

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.

greEd-1’s picture

Ok, but that doesn't answer my question. Refer to original post.

speckulation’s picture

I was wondering how you removed the password field. I only want my users to have to enter their username.

chx’s picture

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.

mroswell’s picture

Three year old question... but no answer...

sudeepg’s picture

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

halloffame’s picture

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.