I am trying to do a check for if some node contains an input element of type = hidden and with value = 'something'. If this is the case, some specific template should be used for the template.
I am trying to do this check in
template.php using the
template_preprocess_node() method where I have access to the
$vars['node']) variable. However the only solution I can come up with is to loop through
$vars['node']->webform['components'] and to check for the input type and after that the value.
However I dont find this approach elegant, what are my options?