function quail_api_get_default_display_level in Quail API 7
Returns an array of quail test display levels, each initialized to TRUE.
Parameters
array|null $standards: (optional) Providing a valid array of standards as returned by quail_api_get_display_levels() and it will be properly converted into a standards list.
Return value
array An array of quail test display levels, each initialized to TRUE.
1 call to quail_api_get_default_display_level()
- quail_api_validate_markup in ./
quail_api.module - Perform accessibility validation of the given HTML snippet.
File
- ./
quail_api.module, line 539 - Module file for the quail api.
Code
function quail_api_get_default_display_level($display_levels = NULL) {
if (is_null($display_levels)) {
$display_levels = quail_api_get_display_levels(NULL);
}
$display_level = array();
foreach ($display_levels as $id => $value) {
if (isset($value['default'])) {
$display_level[$value['id']] = $value['default'];
}
}
return $display_level;
}