[commits] [Wiki] changed: CreatingYourFirstModule
Jan Schneider
jan at horde.org
Wed Feb 17 12:14:49 UTC 2016
jan Wed, 17 Feb 2016 12:14:49 +0000
Modified page: http://wiki.horde.org/CreatingYourFirstModule
New Revision: 22
Change log: More tweaks
@@ -28,21 +28,21 @@
</code>
Linking is the preferred variant as this allows you to work within
the horde git repository and commit any code you write to a local
branch. At the same time you have the installation ready for immediate
testing of any changes.
-4. In /path/to/horde/config/registry.d/ create a file called
newmodulename.php. Please note the lack of ?> at the end of the php
block, and also the menu parent. If you want your object to go
*ANYWHERE ELSE* you will need to change this!
+4. In /path/to/horde/config/registry.d/ create a file called
newmodulename.php. Please note the documentation for available module
entry options in horde/config/registry.php, especially the menu
parent. If you want your module to go **anywhere else** in the menue,
you will need to change this!
This is a "registry.d" example for Horde 5:
<code type="php">
<?php
$this->applications['newmodulename'] = array(
- 'name' => _("New Module"),
- // This is sufficient. More options possible if needed
- );
+ 'name' => _("New Module"),
+ // This is sufficient. More options possible if needed
+);
</code>
-5. If you wish you can provide your new module with a PNG icon at
16x16. This needs to be placed in the "themes" subdirectory:
+5. If you wish you can provide your new module with a PNG icon at
20x20. This needs to be placed in the "themes" subdirectory:
<code type="sh">
mkdir newmodulename/themes/default/graphics
cp newmodulename.png newmodulename/themes/default/graphics/
More information about the commits
mailing list