function template_preprocess_webform_display_grid in Webform 7.4
Preprocess function for displaying a grid component.
File
- components/
grid.inc, line 422 - Webform module grid component.
Code
function template_preprocess_webform_display_grid(&$variables) {
$element =& $variables['element'];
// Expand the grid, suppressing randomization. This builds the grid
// questions and options.
$element['#qrand'] = FALSE;
$element['#optrand'] = FALSE;
$element['#required'] = FALSE;
$element = webform_expand_grid($element);
}