Role Expire
Component ID
374093
Component name
Role Expire
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
27083
Component created
Component changed
Component body
Role Expire is a simple module that allows administrators to set and control expiry dates of user roles. A common use case for this module is to implement magazine style subscriptions where somebody purchases or receives access for a fixed period of time.
At the moment it implements the following functionality:
- Selecting a role (or roles) on user_profile_form triggers a textfield (or textfields) where admins can enter expiry date for selected items.
- Defined expiry dates are displayed on user's profile (visible only for owners of the profile or users with proper permissions). This can be altered using standard theme_ or hook_user() functions.
- Role expiry dates are controlled by Cron, so it automatically removes any expired roles.
- Simple API is provided to set, clear or retrieve expiry dates for given roles and users.
- Views.module handlers are provided for displaying, sorting and filtering expiry dates inside views (per role).
- Set default expiry duration in days for each role in the edit role screen, so that on receiving a role a user will keep it for n days. handy for Subscriptions or temporary access
- Migrate module support for migrating roles into your Drupal site.
- If you want to keep role history alongside look at role watchdog module
- Rules module integration
- You can set a default role when each role expires.
Drupal 8
Drupal 8 version is already available. This version doesn't have all features of Drupal 7 yet but all basic features work well. Please, give feedback!
Drupal 6
Drupal 6 version is completely unsupported!
Drupal 5
There is a Drupal 5 version of the module but this is completely unsupported. http://drupal.org/node/612422
