I using role expire module, if you see screenshot 1 with the red box, this is how it look like without using display suit user display.

I want to use user display but there isn't a selection for role expire at full profile. I try to add custom field for user display, screenshot 2 show information of role expiry from devel themer. I try the below code for user display field but doesn't work Parse error: syntax error, unexpected T_PRINT in /home/mysite/public_html/sites/all/modules/ds/ds.module(633) : eval()'d code on line 2

  print $object->role-expiry-roles;

and

  return $object->role-expiry-roles;

any help?

CommentFileSizeAuthor
screenshot2.png76.7 KBspacereactor
screenshot1.png25.31 KBspacereactor

Comments

spacereactor’s picture

i still have no solution, from the devel themer, calling from user-profile-category.tpl.php

array->element->role_expire->#attributes and #value

anyone got a glue how to turn this into display suit (user display) field?

swentel’s picture

You don't have to look in themer for this. If you have the latest version of ds, there is link on the admin/ds/ud/fields screen where you can click on and a popup will appear with dsm (you need the devel module for this). Haven't tested this yet, but it will rather be something like $object->role_expire_roles (or something like that) - I'll look back at this in the weekend.

swentel’s picture

Title: how to add role expire module code snippets? » Add support for role expire
Category: support » task
Issue tags: +ds 1.3

Ok, did a quick look, it's not possible (wel, it is, but not easy and with performance downtime) - changing title also, will add a fix this weekend probably

swentel’s picture

Status: Active » Closed (duplicate)

Marking as duplicate see #800862: Create ND OG integration
if that issue is done, more fields found from objects will be recognized if available without having to create new fields via the UI

swentel’s picture

Issue tags: -ds 1.3

removing tag