Opened 16 years ago
Closed 16 years ago
#2655 closed enhancement (fixed)
[patch] Exclude parameters and miscellaneous enhancements for bp_has_profile()
| Reported by: | boonebgorges | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Extended Profile | Version: | |
| Severity: | Keywords: | has-patch needs-testing | |
| Cc: |
Description
This patch adds several additional parameters to bp_has_profile():
- 'exclude_groups' allows you to specify profile groups to exclude
- 'exclude_fields' allows you to specify profile fields to exclude
You can use the two together to nicely customize your profile loop.
In addition, I noticed that BP_XProfile_Group::get() takes a couple of potentially helpful parameters that were, for some reason, not available to the loop. So I moved them upstream. In particular, bp_has_profile() now also accepts:
- 'fetch_fields'
- 'fetch_field_data'
- 'hide_empty_groups'
I know that it'll be helpful to me, at least, to have these available to the loop in the future.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [3381]) Adds several exclude parameters to bp_has_profile(). Fixes #2655