Add validate to module builder

This commit is contained in:
ATM john
2021-07-11 14:05:26 +02:00
parent a9a7315ce1
commit dc3f960ce8
3 changed files with 16 additions and 2 deletions

View File

@@ -176,6 +176,9 @@ function rebuildObjectClass($destdir, $module, $objectname, $newmask, $readdir =
}
$texttoinsert .= "),";
}
if ($val['validate']) {
$texttoinsert .= " 'validate'=>'".$val['validate']."',";
}
if ($val['comment']) {
$texttoinsert .= " 'comment'=>\"".preg_replace('/"/', '', $val['comment'])."\"";
}