function _webform_grid_right_titles in Webform 7.4
Determine if a right-side title column has been specified.
2 calls to _webform_grid_right_titles()
- theme_webform_display_grid in components/
grid.inc - Format the text output for this component.
- theme_webform_grid in components/
grid.inc - Theme function to render a grid component.
File
- components/
grid.inc, line 807 - Webform module grid component.
Code
function _webform_grid_right_titles($element) {
if ($element['#title_display'] == 'internal' && substr_count($element['#title'], '|')) {
return TRUE;
}
foreach ($element['#grid_questions'] as $question_key => $question) {
if (substr_count($question, '|')) {
return TRUE;
}
}
return FALSE;
}