git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit 39462c3a authored by chimo's avatar chimo

Documentation about plugins

* Content in plugins/doc/Plugin_development.md from:
https://web.archive.org/web/20140821102047/http://status.net/wiki/HOWTO_Make_a_Plugin

* Point link on Plugins Admin Panel page to plugins/README.md
parent a03249dd
Plugins
=======
Beginning with the 0.7.x branch, StatusNet has supported a simple but
GNU social supports a simple but
powerful plugin architecture. Important events in the code are named,
like 'StartNoticeSave', and other software can register interest
in those events. When the events happen, the other software is called
......@@ -37,7 +37,7 @@ can enable a plugin with the following line in config.php:
This will look for and load files named 'ExamplePlugin.php' or
'Example/ExamplePlugin.php' either in the plugins/ directory (for
plugins that ship with StatusNet) or in the local/ directory (for
plugins that ship with GNU social) or in the local/ directory (for
plugins you write yourself or that you get from somewhere else) or
local/plugins/.
......
......@@ -62,7 +62,7 @@ class PluginsadminpanelAction extends AdminPanelAction
{
// TRANS: Instructions at top of plugin admin page.
return _('Additional plugins can be enabled and configured manually. ' .
'See the <a href="http://status.net/wiki/Plugins">online plugin ' .
'See the <a href="https://git.gnu.io/gnu/gnu-social/blob/master/plugins/README.md">online plugin ' .
'documentation</a> for more details.');
}
......
Several example plugins are included in the plugins/ directory. You
can enable a plugin with the following line in config.php:
```php
addPlugin('Example', array('param1' => 'value1',
'param2' => 'value2'));
```
This will look for and load files named 'ExamplePlugin.php' or
'Example/ExamplePlugin.php' either in the plugins/ directory (for
......@@ -12,10 +14,8 @@ local/plugins/.
Plugins are documented in their own directories.
Additional information on using and developing plugins can be found
on the StatusNet wiki:
at the following locations:
http://status.net/wiki/Plugins
http://status.net/wiki/Plugin_development
[Plugin Development](doc/Plugin_development.md)
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment