function smarty_function_html_options_optgroup in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/lib/smarty/plugins/function.html_options.php \smarty_function_html_options_optgroup()
1 call to smarty_function_html_options_optgroup()
- smarty_function_html_options_optoutput in includes/
moodle/ lib/ smarty/ plugins/ function.html_options.php
File
- includes/
moodle/ lib/ smarty/ plugins/ function.html_options.php, line 110
Code
function smarty_function_html_options_optgroup($key, $values, $selected) {
$optgroup_html = '<optgroup label="' . smarty_function_escape_special_chars($key) . '">' . "\n";
foreach ($values as $key => $value) {
$optgroup_html .= smarty_function_html_options_optoutput($key, $value, $selected);
}
$optgroup_html .= "</optgroup>\n";
return $optgroup_html;
}