function _makemeeting_define_class_suffix in Make Meeting Scheduler 7.2
Helper function to define classes based on a count and a total
Parameters
$element:
$count:
$total:
string $prefix:
1 call to _makemeeting_define_class_suffix()
- theme_makemeeting_answers in ./
makemeeting.theme.inc - Function used to render answers' table
File
- ./
makemeeting.theme.inc, line 430
Code
function _makemeeting_define_class_suffix(&$element, $count, $total, $prefix = '') {
if ($prefix) {
$prefix .= '-';
}
if ($count == 0) {
$element['class'][] = $prefix . 'first';
}
elseif ($count == $total - 1) {
$element['class'][] = $prefix . 'last';
}
else {
$element['class'][] = $prefix . 'medium';
}
}