|
Search on the name, group, or tag of an Individual contact type, and list the results with the Name and Internal Contact ID for each Individual's Household. Does not return records for Individuals who are not members of a Household. Usage: Add Households to a group or tag instead of (or in addition to) the Individuals that belong to the Household. You can export the search results in csv format, and then import them again, this time mapping the Household ID to Internal Contact ID during the import. You can then perform the usual operations on the search result: add to group, remove from group, tag, untag, etc. Search on Name, Group and Tag, and display the results as:
Relationship Type is not really necessary in the search results. It is hard-coded to 7 in the php file. It is included to verify that the records returned do indeed have the required relationship This custom search is based on the existing 'EmployerListing.php' custom search. It has been tested on CiviCRM 2.2.2, running on Drupal 6.1.3. How to use: Put the code below into a file called IndividualHousehold.php in CRM/Contact/Form/Search/Custom. Custom Search Path: CRM_Contact_Form_Search_Custom_IndividualHousehold |
Labels