[commits] [Wiki] changed: CreatingYourFirstModule
Ralf Lang
lang at b1-systems.de
Fri Mar 11 14:33:31 UTC 2011
rlang Fri, 11 Mar 2011 14:33:31 +0000
Modified page: http://wiki.horde.org/CreatingYourFirstModule
New Revision: 1.11
Change log: verified example for horde 4
@@ -123,8 +123,10 @@
(The link doesn't work for me anymore, try this one:)
http://groupware.ralf-lang.de/ajaxadmin/themes/graphics/ajaxadmin.png
6. In /path/to/horde/config/registry.d/ create a file called
modulename.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!
+
+=== registry.d example for horde 3 ===
<code type="php">
<?php
$this->applications['modulename'] = array(
@@ -135,7 +137,19 @@
'menu_parent' => 'horde'
);
</code>
-This snippet is for horde3. I didn't test it for horde4.
+=== registry.de example for horde 4 ===
+
+<code type="php">
+<?php
+$this->applications['tickplug'] = array(
+ 'name' => _("Tickplug"),
+ 'provides' => array(
+ 'Tickets/Import'
+ )
+ // This is sufficient. More options possible if needed
+ );
+
+</code>
OK, so you now have your first module. Now, you need to populate it
with content. This will be the subject of the next section:
PopulatingYourFirstModule
More information about the commits
mailing list