Posted by sreedharprabhu.... on March 15, 2012 at 9:01am
Hi,
How to implement filters/validation in each and every input field throughout the application?
Thanks,
Sree
| Attachment | Size |
|---|---|
| script.PNG | 35.99 KB |
Hi,
How to implement filters/validation in each and every input field throughout the application?
Thanks,
Sree
| Attachment | Size |
|---|---|
| script.PNG | 35.99 KB |
Comments
How You are created the input?
How You are created the input using form API or using content types (cck in drupal6) ?
Not custom created inputs, asking abt core
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
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"
http://www.lullabot.com/artic
http://www.lullabot.com/articles/drupal-input-formats-and-filters