...I'm trying to figure out how I can add the node type as a class of the "container", which is just inside the iframe. The classes are assigned in the widget-iframe.tpl.php file on a line that looks something like this:
<div id="container" class="clear-block widget-container">
I would like to turn it into something like this:
<div id="container" class="clear-block widget-container <?php print $node_type; ?>">
but I can't figure out how to get the node type into such a variable. I have figured out that I can access variables I place in the $variables variable in the embed_widgets_preprocess_page function (found in embed_widgets.module), but I think it's too late at that point and that I don't have the node type there to pass on. The theme layer is my weakest area of knowledge in Drupal, unfortunately, so I'm really going in circles here.
To make matters worse, once you are dealing with the theme layer, it is too late to use drupal_set_message or dsm, and so I'm not sure how to inspect the variables available to me. I mean, what is in $variables when it gets to the preprocess function and does it contain the node type someplace?
Any help will be appreciated.