diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-08-28 06:59:26 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-08-28 06:59:26 -0400 |
commit | ba224f382dfc02f187591a49b437d89973650e46 (patch) | |
tree | 71b9d01cd6a636da0f6abb057d72d6e3af7ac0a0 /doc/Plugins.md | |
parent | f2ff6f394ba993bafd65d49939853f4dabb53dc3 (diff) | |
download | volse-hubzilla-ba224f382dfc02f187591a49b437d89973650e46.tar.gz volse-hubzilla-ba224f382dfc02f187591a49b437d89973650e46.tar.bz2 volse-hubzilla-ba224f382dfc02f187591a49b437d89973650e46.zip |
Remove definite article before $Projectname in docs
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 4147d08fd..88b42185b 100644 --- a/doc/Plugins.md +++ b/doc/Plugins.md @@ -1,9 +1,9 @@ -Creating Plugins/Addons for the $Projectname +Creating Plugins/Addons for $Projectname ========================================== -So you want to make the $Projectname do something it doesn't already do. There are lots of ways. But let's learn how to write a plugin or addon. +So you want to make $Projectname do something it doesn't already do. There are lots of ways. But let's learn how to write a plugin or addon. In your $Projectname folder/directory, you will probably see a sub-directory called 'addon'. If you don't have one already, go ahead and create it. @@ -49,7 +49,7 @@ In our case, we'll call them randplace_load() and randplace_unload(), as that is * pluginname_uninstall() -Next we'll talk about **hooks**. Hooks are places in the $Projectname code where we allow plugins to do stuff. There are a [lot of these](help/Hooks), and they each have a name. What we normally do is use the pluginname_load() function to register a "handler function" for any hooks you are interested in. Then when any of these hooks are triggered, your code will be called. +Next we'll talk about **hooks**. Hooks are places in $Projectname code where we allow plugins to do stuff. There are a [lot of these](help/Hooks), and they each have a name. What we normally do is use the pluginname_load() function to register a "handler function" for any hooks you are interested in. Then when any of these hooks are triggered, your code will be called. We register hook handlers with the 'register_hook()' function. It takes 3 arguments. The first is the hook we wish to catch, the second is the filename of the file to find our handler function (relative to the base of your $Projectname installation), and the third is the function name of your handler function. So let's create our randplace_load() function right now. @@ -246,13 +246,13 @@ we will create an argc/argv list for use by your module functions ***Porting Friendica Plugins*** -The $Projectname uses a similar plugin architecture to the Friendica project. The authentication, identity, and permissions systems are completely different. Many Friendica plugins can be ported reasonably easily by renaming a few functions - and then ensuring that the permissions model is adhered to. The functions which need to be renamed are: +$Projectname uses a similar plugin architecture to the Friendica project. The authentication, identity, and permissions systems are completely different. Many Friendica plugins can be ported reasonably easily by renaming a few functions - and then ensuring that the permissions model is adhered to. The functions which need to be renamed are: * Friendica's pluginname_install() is pluginname_load() * Friendica's pluginname_uninstall() is pluginname_unload() -The $Projectname has _install and _uninstall functions but these are used differently. +$Projectname has _install and _uninstall functions but these are used differently. * Friendica's "plugin_settings" hook is called "feature_settings" |