X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FAddons.md;h=bbc0ed61c19895537eb6ae95df75a7aa6dcd32b8;hb=d6fe212a49a3fdb66a2ab90b282b5c84e9bf2f07;hp=6fa87c953ccb5c1d640a4be8a04b7fd549bc6e03;hpb=ce7d394ff9d1400ec110cde8c47f5a3509503410;p=friendica.git diff --git a/doc/Addons.md b/doc/Addons.md index 6fa87c953c..bbc0ed61c1 100644 --- a/doc/Addons.md +++ b/doc/Addons.md @@ -232,22 +232,120 @@ Please note: body contents are bbcode - not HTML Called when receiving a post from another source. This may also be used to post local activity or system generated messages. `$b` is the item array of information to be stored in the database and the item body is bbcode. -### settings_form -Called when generating the HTML for the user Settings page. -`$b` is the HTML string of the settings page before the final `` tag. - -### settings_post -Called when the Settings pages are submitted. -`$b` is the $_POST array. - ### addon_settings Called when generating the HTML for the addon settings page. -`$b` is the (string) HTML of the addon settings page before the final `` tag. +`$data` is an array containing: + +- **addon** (output): Required. The addon folder name. +- **title** (output): Required. The addon settings panel title. +- **href** (output): Optional. If set, will reduce the panel to a link pointing to this URL, can be relative. Incompatible with the following keys. +- **html** (output): Optional. Raw HTML of the addon form elements. Both the `