CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Non standard Group Types in Drupal Views
Pages: [1]

Author Topic: Non standard Group Types in Drupal Views  (Read 662 times)

dowd

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
Non standard Group Types in Drupal Views
September 20, 2012, 04:48:08 am
At Woodlands Church they use a custom group type (they can be added by going to example.org/civicrm/admin/optionValue?gid=20&reset=1) for groups that are real groups within the church and not administrative type groups or just mailing groups. I would like to be able to produce reports in Drupal views on these groups but at the moment they don't show up in views or in the Civi API.
Would anyone be able to add these custom group types to views?
Also I occasionally come across things that I would like to add to views but have not found any simple to follow instructions on how to add things, does anyone know of any or could talk me through it themselves (I am not a coder as such but very geeky and keen to learn!)

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Non standard Group Types in Drupal Views
September 20, 2012, 09:46:12 am

check the code here:

drupal/modules/views/components/civicrm.core.inc

and search for 'civicrm_group'

the fields are added manually, so u can add the group_type field. You will need to do some extra processing to split the string into individual labels

lobo
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Non standard Group Types in Drupal Views

This forum was archived on 2017-11-26.