How to implement filters/validation in each and every input field throughout the application.

Events happening in the community are now at Drupal community events on www.drupal.org.
sreedharprabhu.mca@gmail.com's picture

Hi,

How to implement filters/validation in each and every input field throughout the application?

Thanks,
Sree

AttachmentSize
script.PNG35.99 KB

Comments

How You are created the input?

josejayesh's picture

How You are created the input using form API or using content types (cck in drupal6) ?

Not custom created inputs, asking abt core

sreedharprabhu.mca@gmail.com's picture

If it is custom created inpurt fields, we can use filter_xss,check_plain or strip_tags functions.

I am asking abt core module itself. Pls find detail in attachment.

sree You want to restrict

josejayesh's picture

sree
You want to restrict inserting
alert('test')
if that is the scenario i think you need to implement it in the core module

"According to drupal when you entering any data into drupal it will save in the database as it is , and filtering is applying when contenting is presenting to the user"

India

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week