function customfilter_get_descriptions in Custom filter 5
Get complete description of a filter, including its subfilters.
File
- ./
customfilter.module, line 866
Code
function customfilter_get_descriptions($filter) {
$desc = "<em>" . $filter['description'] . "</em>";
if (is_array($filter['sub']) && count($filter['sub']) > 0) {
$desc .= "<ul>";
foreach ($filter['sub'] as $subfilter) {
$desc .= "<li>";
$desc .= customfilter_get_descriptions($subfilter);
$desc .= "</li>";
}
$desc .= "</ul>";
}
return $desc;
}