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 CiviMail (Moderator: Piotr Szotkowski) »
  • visibility of a mailing list group
Pages: [1]

Author Topic: visibility of a mailing list group  (Read 338 times)

tnoens

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: drupal
  • MySQL version: /
  • PHP version: /
visibility of a mailing list group
April 14, 2014, 05:09:43 am
in the settings of a group of contacts, you can choose the type of group (access control/mailing list) and the visibility: "User and User Admin Only" or "Public Pages". Is it possible to add more options to the visibility drop-down?

fe we have a lot of groups, and when an authorized user starts a new civiMail, he has to scroll through all these groups to find the right one. I would like to add some more roles to the 'visibility' drop down , so that I can link a role (drupal) to whether or not users with this role can see a certain group (mailing list).

is this possible, and how?
Thanks!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: visibility of a mailing list group
April 14, 2014, 12:10:04 pm

it is currently an enum in 4.4 (moving to an option group in 4.5) so u'll need to hack the code to extend that. Might be good to base your changes off 4.5 since extending there is a lot easier and cleaner

To link it to drupal roles, you should be able to do it via the hook_civicrm_mailingGroups

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • visibility of a mailing list group

This forum was archived on 2017-11-26.