I'm trying to create custom tokens with the following criteria, just as I'm able to do in views filter criteria:

if ( (Domain Editor: Domain ID = 'Current Domain' ) && ( User: Roles = 'site owner' ) { 

print $field_social_twitter

}

Basically i have a custom field 'field_social_twitter' that I only want to be pulled from a custom user field, from the domain editor of the current domain, who is also assigned to the permission group 'site owner'.

I'm able to do this in views no problem, but trying to figure out how to pull this off with custom tokens instead of views.

Comments

gaspaio’s picture

Status: Active » Closed (works as designed)

I'm sorry but i don't really have the time to address use cases this specific. You should probably try the support drupal mailing list or IRC.

gaspaio’s picture

Issue summary: View changes

explained logic a bit better.