aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-16 20:30:56 -0700
committerfriendica <info@friendica.com>2013-10-16 20:30:56 -0700
commit06e1e6a1b66b90431b5acf1876a7d62c2d67938f (patch)
tree7fee16f247c6e20d669a661a3a1633d6f2677b28 /doc
parentaee569fc47f64fdea5fcfad5802ccc9666b556c2 (diff)
downloadvolse-hubzilla-06e1e6a1b66b90431b5acf1876a7d62c2d67938f.tar.gz
volse-hubzilla-06e1e6a1b66b90431b5acf1876a7d62c2d67938f.tar.bz2
volse-hubzilla-06e1e6a1b66b90431b5acf1876a7d62c2d67938f.zip
minor edits
Diffstat (limited to 'doc')
-rw-r--r--doc/Plugins.md17
1 files changed, 13 insertions, 4 deletions
diff --git a/doc/Plugins.md b/doc/Plugins.md
index 1ddd47ee2..80379c478 100644
--- a/doc/Plugins.md
+++ b/doc/Plugins.md
@@ -99,7 +99,7 @@ Let's go ahead and add some code to implement our post_local hook handler.
if(local_user() != $item['uid']) /* Does this person own the post? */
return;
- if(($item['parent']) || ($item['restrict'])) {
+ if(($item['parent']) || ($item['item_restrict'])) {
/* If the item has a parent, or item_restrict is non-zero, this is a comment or something else, not a status post. */
return;
}
@@ -140,8 +140,9 @@ Now let's add our functions to create and store preference settings.
/**
*
* Callback from the settings post function.
- * $post contains the $_POST array.
- * We will make sure we've got a valid user account
+ * $post contains the global $_POST array.
+ * We will make sure we've got a valid user account
+ * and that only our own submit button was clicked
* and if so set our configuration setting for this person.
*
*/
@@ -158,8 +159,16 @@ Now let's add our functions to create and store preference settings.
/**
*
* Called from the Feature Setting form.
- * Add our own settings info to the page.
+ * The second argument is a string in this case, the HTML content region of the page.
+ * Add our own settings info to the string.
*
+ * For uniformity of settings pages, we use the following convention
+ * <div class="settings-block">
+ * <h3>title</h3>
+ * .... settings html - many elements will be floated...
+ * <div class="clear"></div> <!-- generic class which clears all floats -->
+ * <input type="submit" name="pluginnname-submit" class="settings-submit" ..... />
+ * </div>
*/