#1236 closed enhancement (fixed)
[patch] Custom validation methods for profile field data
| Reported by: | swinton | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.5 |
| Component: | Core | Version: | |
| Severity: | Keywords: | has-patch | |
| Cc: |
Description
It would be nice if the xprofile component provided a means of validating profile field data using a custom function.
For example, a profile field 'Post code' should only contain post codes.
This could be achieved by applying a filter on the value returned from is_valid_field in BP_XProfile_ProfileData.
3rd party plugins could then validate the profile data as required.
A suggested patch is attached.
Attachments (1)
Change History (8)
#3
@
16 years ago
- Component → Core
- Owner set to
- Status new → assigned
Assigning to myself for xprofile 1.3 make-over.
#4
@
16 years ago
- Summary Custom validation methods for profile field data → [patch] Custom validation methods for profile field data
#5
@
16 years ago
- Keywords has-patch added; xprofile validation filter removed
+1 on this idea and on the patch's simple solution. Mr JJJ, you make the final call, since it's assigned to you.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
xProfile is to be reviewed and updated in 1.3. Too much ha changed in the 4 months since this was posted for this ticket to be applicable.