Work on modulebuilder template

This commit is contained in:
Laurent Destailleur 2017-05-08 21:04:23 +02:00
parent dd71fdc82f
commit 1371af5f66
2 changed files with 5 additions and 4 deletions

View File

@ -49,11 +49,10 @@ $dircustom = $tmp[0];
if ($dircustom && $action == 'initmodule' && $modulename)
{
$srcfile = DOL_DOCUMENT_ROOT.'/modulebuilder/skeletons';
$srcfile = DOL_DOCUMENT_ROOT.'/modulebuilder/template';
$destfile = $dircustom.'/'.$modulename;
//$result = dolCopyDir($srcfile, $destfile, 0, 0);
dol_mkdir($destfile);
$result = dolCopyDir($srcfile, $destfile, 0, 0);
//dol_mkdir($destfile);
fopen($destfile, $mode)

View File

@ -0,0 +1,2 @@
File to flag module build using official module template.
When this file is present into a module directory, you can edit it with the module builder tool.