Subs roles

Component ID

1765614

Component name

Subs roles

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

396

Component created

Component changed

Component body

This module have been deprecated since it have been integrate to the main subs module (>= 1.0-beta5).

This module provide a basic and simple way to set roles to
users subscribes.

Its alter subs type entity to add a field
storing roles rid to attributes to users associated
to a subs, depending on the subs status.

When the triggered status is matched, roles defined
will be added to the users subscribe.

If subs status change and doesn't match status to trigger
for attribution, roles added will be removed.

In that way, you don't have to create rules each time
a new role/subs type have been created and wanted to
attribute them.

As it used hook_entity, it deals with :
- CRUD entity
- cron job

But this module have been develop for simple use case
and have some limits :
- exclude default roles anonymous and authenticated user
- a role could be used by only one subs type
and be added/removed only through subs status. Otherwise,
this is your own risks (using UI for e.g).

- only one subs status should be trigger

In other word, if it doesn't match to your needs, rules module could be a solution
as it's integrate by subs module itself.

Requirement

Development

Makina Corpus