I am working on drupal 7 clientside validation module.On validation which displays error messages with 'error' class which is same as drupal's system error message's class.But I want seperate theming for clientside validation so I want to change the class 'error' to 'newerror' without hacking the module.I searched everything in web but most suggestions for altering error messages.I dont want to change systems error class.Any suggestions?

Comments

attiks’s picture

I think it might be better to just add an extra class to it, so you can style them differently if you want to?

If so can you proivde a patch

hiranya’s picture

Hi,thanks for your kind reply.But where I have to add class? in modules js file or doing some custom module.I found no way around without hacking it.Sorry if I misunderstood you!

attiks’s picture

#2 You can change it into the module and upload your changes here, so we can add it to the module. More background info on how to do this can you find at https://drupal.org/node/707484

attiks’s picture

hiranya’s picture

Hi,

In clientside_validation.js line 280 I changed errorClass:error to errorClass:newerror.working fine.But I dnt think it's a good idea.