955
955
function system_listing($mask, $directory, $key = 'name', $min_depth = 1) {
957
958
$searchdir = array($directory);
960
961
// Always search sites/all/* as well as the global directories
961
962
$searchdir[] = 'sites/all';
962
968
if (file_exists("$config/$directory")) {
963
969
$searchdir[] = "$config/$directory";