Skip to content

Commit bfa19b3

Browse files
committed
Added module id format hint
1 parent 7711e41 commit bfa19b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/rewrite-module-id.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# ----- Configuration -------------------------------------------------------------------------------------------
44

5+
// New Module ID in KebabCase (e.g. my-plugin, super-plugin, voting)
56
$newModuleId = "example-basic";
67
$newNamespace = 'acmeCorp\humhub\modules\exampleBasic';
78

@@ -50,6 +51,7 @@
5051
// Replace in files
5152
$fileContent = file_get_contents($file);
5253
$fileContent = str_replace($oldModuleId, $newModuleId, $fileContent);
54+
$fileContent = str_replace(ucfirst($oldModuleId), ucfirst($newModuleId), $fileContent);
5355
$fileContent = str_replace(dashesToCamelCase($oldModuleId), dashesToCamelCase($newModuleId), $fileContent);
5456
$fileContent = str_replace($oldNamespace, $newNamespace, $fileContent);
5557
file_put_contents($file, $fileContent);

0 commit comments

Comments
 (0)