Drupal Association members fund grants that make connections all over the world.
I'm trying to add a class to the region div based on a field value.
Inside my node I have a field where a user can select an option from some radio buttons. I would like to take the value of that field and add it to the classes used on
<div class="ds-1col node node-page node-odd view-mode-full clearfix">
I've done this in the past for fields by using the ds_extras module that comes with ds which provides a theme function theme_ds_field_minimal.
It seems like the function that adds classes to the DS regions is ds_entity_variables. At the end it runs an alter drupal_alter('ds_pre_render', $layout_render_array, $context);
I've tried using hook_ds_pre_render_alter but the classes don't seem to be available.
I'm not sure if there is a way to do this now or if a feature / hook needs to be added for this to work. Any help would be greatly appreciated.