aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-11 15:52:37 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-11 15:52:37 -0700
commitdc7de1299139e79265fe2abece004e907dfb8ed0 (patch)
treeb979dd1c441066f4dca8a077f244c3ee4c066537 /include/items.php
parent04551ac32b171ce49eac64cee0eca719d8e2f58a (diff)
downloadvolse-hubzilla-dc7de1299139e79265fe2abece004e907dfb8ed0.tar.gz
volse-hubzilla-dc7de1299139e79265fe2abece004e907dfb8ed0.tar.bz2
volse-hubzilla-dc7de1299139e79265fe2abece004e907dfb8ed0.zip
hubzilla compatibility function
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 47a2e6c18..0dc6d6ed6 100755
--- a/include/items.php
+++ b/include/items.php
@@ -192,6 +192,20 @@ function comments_are_now_closed($item) {
return false;
}
+/**
+ * @brief
+ *
+ * This is a compatibility function primarily for plugins, because
+ * in future hubzilla (and later) DB schemas the definition of a
+ * normal item gets a bit more complicated.
+ *
+ */
+
+function is_item_normal($item) {
+ return((intval($item['item_restrict'])) ? false : true);
+}
+
+
/**
* @brief