Closed (works as designed)
Project:
Custom Tokens
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2012 at 07:37 UTC
Updated:
7 May 2012 at 13:41 UTC
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
Comment #1
gaspaio commentedI'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.
Comment #1.0
gaspaio commentedexplained logic a bit better.