Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fapi_validation
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
fapi_validation
Commits
857b3417
Commit
857b3417
authored
11 years ago
by
Jesse Nicola
Browse files
Options
Downloads
Patches
Plain Diff
Adding in readme file so we have SOME place where the new functionality is tracked
parent
c5ea459e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.txt
+55
-0
55 additions, 0 deletions
README.txt
with
55 additions
and
0 deletions
README.txt
0 → 100644
+
55
−
0
View file @
857b3417
This module drastically increase the validation power of Drupal Form API (FAPI).
You can use the existent filters and rules or create your own. It is up to you!
For the most information, visit the project documenation.
rules Usage Description
------------------------------------------------------
numeric numeric Must contains only numbers.
alpha alpha Must contains only alpha characters.
length length[<total>]
length[<min>, <max>]
length[<min>, *]
chars chars[<char 1>, <char 2>, ..., <char N>]
Accept only specified characters.
email email Valid email
url url
url[absolute] Valid URL. If absolute parameter is specified,
the field value must have to be a full URL.
ipv4 ipv4 Valid IPv4
alpha_numeric alpha_numeric Accept only Alpha Numeric characters
alpha_dash alpha_dash Accept only Alpha characters and Dash ( - )
digit digit Checks wheter a string consists of digits only (no dots or dashes).
decimal decimal
decimal[<digits>,<decimals>]
regexp regexp[/^regular expression$/]
PCRE Regular Expression
match_field match_field[otherfield]
Check if the field has same value of otherfield.
range range[<min>, <max>] Check if the field value is in defined range.
Filters Description
----------------------------------------------------------------------
numeric Remove all non numeric characters.
trim Remove all spaces before and after value.
uppercase Transform all characters to upper case.
lowercase Transform all characters to lower case.
strip_tags Uses PHP's strip_tags()
html_entities Encodes all entities such as & to &
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment