diff options
author | Friendika <info@friendika.com> | 2011-11-08 14:12:01 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-11-08 14:12:01 -0800 |
commit | 6d507a840a1bcb8bd3591a808c7a8f29ca1eebd8 (patch) | |
tree | 31e22d1880239a313d5d3138c13c9976e716ace3 /doc/Plugins.md | |
parent | eeec29c6be2429ea38ab258591200e0178886a25 (diff) | |
download | volse-hubzilla-6d507a840a1bcb8bd3591a808c7a8f29ca1eebd8.tar.gz volse-hubzilla-6d507a840a1bcb8bd3591a808c7a8f29ca1eebd8.tar.bz2 volse-hubzilla-6d507a840a1bcb8bd3591a808c7a8f29ca1eebd8.zip |
some doc updates
Diffstat (limited to 'doc/Plugins.md')
-rw-r--r-- | doc/Plugins.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/Plugins.md b/doc/Plugins.md index 42c04cb26..090790d46 100644 --- a/doc/Plugins.md +++ b/doc/Plugins.md @@ -1,4 +1,4 @@ -**Friendika Addon/Plugin development** +**Friendica Addon/Plugin development** This is an early specification and hook details may be subject to change. @@ -16,9 +16,9 @@ Register your plugin hooks during installation. register_hook($hookname, $file, $function); -$hookname is a string and corresponds to a known Friendika hook. +$hookname is a string and corresponds to a known Friendica hook. -$file is a pathname relative to the top-level Friendika directory. This *should* be 'addon/plugin_name/plugin_name.php' in most cases. +$file is a pathname relative to the top-level Friendica directory. This *should* be 'addon/plugin_name/plugin_name.php' in most cases. $function is a string and is the name of the function which will be executed when the hook is called. @@ -35,8 +35,8 @@ Your hook callback functions will be called with at least one and possibly two a If you wish to make changes to the calling data, you must declare them as reference variables (with '&') during function declaration. -$a is the Friendika 'App' class - which contains a wealth of information -about the current state of Friendika, such as which module has been called, +$a is the Friendica 'App' class - which contains a wealth of information +about the current state of Friendica, such as which module has been called, configuration info, the page contents at the point the hook was invoked, profile and user information, etc. It is recommeded you call this '$a' to match its usage elsewhere. |