security

Posted by: 
Dominique De Cooman

If you want to create a custom views access plugin the reason for this will be to allow you to have an entry point to add custom logic to protect the access to your view.

Let say you need a finer access control to a view than roles and permissions. For example you are storing properties on a user object who determine if certain user can see certain views independent of their roles.

What we need to do, is to configure our views correctly with a views access plugin.

The hacky way:

Posted by: 
Dominique De Cooman

Here is an example on how to obscure email addresse (or other tekst) using http://drupal.org/project/signwriter in a formatter. You can use it on the cck field overview as a formatter (or in display suite).

<?php
//cck formatters
/**
 * Implementation of hook_field_formatter_info(),.
 */
function your_module_field_formatter_info() {
  return array(
    
'text_as_image' => array(?>

Obscure email addresses in drupal using signwriter

Signwriter is a Drupal module that allows you to use TrueType fonts to replace text in headings, menu's etc.
It does this by replacing text with an image from the TrueType font file. This enables you to obscure email addresses, by replacing them with an image.

http://www.commonplaces.com/resources/blog/using-signwriter-obscure-emai...

Subscribe to security