This documentation relates to CiviCRM version 3.2. It's not maintained anymore.
Current version of documentation.

Custom Search Find Households by group

Aller directement à la fin des métadonnées
Aller au début des métadonnées

This page refers to outdated version of CiviCRM. Check current version of documentation.

Documentation Search

CiviCRM 3.2 Documentation

Support and Participation

Developer Resources

CiviCRM book!

Make sure to check out Understanding CiviCRM as well! You can also support this project by ordering a hard copy.

Return a list of households based on a selected group. The idea here is that you will have your own selection of users, based on whatever criteria you have chosen, then assigned these individuals to a group. All you need to do with this search is select from a chosen group and click the Search button. This search will only return individuals who are members of a household.

This search returns:

  • Contact ID
  • Household Name

You may then assign tags to these household records, include them in other groups, and so on.

This custom search is based on the existing 'EmployerListing.php' custom search. It has been tested on CiviCRM 3.0.2, running on Drupal 6.14.

How to use: Put the code below into a file called HouseHoldByGroup.php in CRM/Contact/Form/Search/Custom.
Then set it up in Administer CiviCRM -> Manage Custom Searches.

Custom Search Path: CRM_Contact_Form_Search_Custom_HouseHoldByGroup
Search Title: Find Households Based On Groups

Here's the code.

  • Aucun

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.