Work on modulebuilder template
This commit is contained in:
parent
dd71fdc82f
commit
1371af5f66
@ -49,11 +49,10 @@ $dircustom = $tmp[0];
|
|||||||
|
|
||||||
if ($dircustom && $action == 'initmodule' && $modulename)
|
if ($dircustom && $action == 'initmodule' && $modulename)
|
||||||
{
|
{
|
||||||
$srcfile = DOL_DOCUMENT_ROOT.'/modulebuilder/skeletons';
|
$srcfile = DOL_DOCUMENT_ROOT.'/modulebuilder/template';
|
||||||
$destfile = $dircustom.'/'.$modulename;
|
$destfile = $dircustom.'/'.$modulename;
|
||||||
//$result = dolCopyDir($srcfile, $destfile, 0, 0);
|
$result = dolCopyDir($srcfile, $destfile, 0, 0);
|
||||||
|
//dol_mkdir($destfile);
|
||||||
dol_mkdir($destfile);
|
|
||||||
|
|
||||||
fopen($destfile, $mode)
|
fopen($destfile, $mode)
|
||||||
|
|
||||||
|
|||||||
2
htdocs/modulebuilder/template/modulebuilder.txt
Normal file
2
htdocs/modulebuilder/template/modulebuilder.txt
Normal 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.
|
||||||
Loading…
Reference in New Issue
Block a user