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.
Could uc_roles_products.duration and granularity be added to Views? I need to sort products by duration.
The ideal would be to also have a field with duration and granularity multiplied out to days. If there was a field roles.days, I could sort lists based on the duration/granularity combination without having to calculate out the relative value of 6 month versus 120 day.
I did not find code or issues relating the Roles module to Views. If there was at least one field in place, I could work on adding the other fields.
Comments
Comment #1
longwaveThere isn't any Views code in the roles module, but there are Views fields in other modules such as uc_product that you could use as an example.
Comment #2
TR CreditAttribution: TR commentedYou could help out in #419700: How to include role expiration date into a view?.