Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Introduction
Mask parts of your content for certain users based on their role or UID. The module adds the content_mask shortcode for defining parts that should be masked, e.g.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac ligula non augue scelerisque dapibus vel et ante. Pellentesque volutpat nibh ut ipsum bibendum euismod. Ut nibh nisi, aliquam sed ornare eu, hendrerit quis nunc. Nam vel nunc sed erat dapibus accumsan id eget nunc.
[content_mask uid="1"]
Mauris ornare augue ac augue tempor auctor. Praesent justo ligula, convallis quis semper a, eleifend ut mi. Etiam eleifend aliquet quam, accumsan eleifend erat vestibulum at. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
[/content_mask]
[content_mask role="editor|administrator"]
Praesent rutrum, ligula vitae porta faucibus, nunc ante consequat est, in imperdiet eros odio vitae nunc.
[/content_mask]
The module uses Wordpress's shortcode regex as base for handling the masked
content.
Requirements
- Filter
Installation
- Enable the module.
- Go to admin > configuration > content authoring > text formats.
- Click on a text format you would like to have content_mask support.
- Enable the content mask filter by clicking the checkbox.
- Add the content_mask shortcode on any content with the configured text format.
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Access Control
- 1 site reports using this module
- Created by robinvdvleuten on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.2
released 11 February 2014
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 11 Feb 2014 at 14:43 UTC