aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-10-26 15:31:10 -0700
committerfriendica <info@friendica.com>2012-10-26 15:31:10 -0700
commit5b1a15704b81af507bddb623fefa3a9f416050b4 (patch)
treeaf0d0770d9aba65888024aa846838a4c169d258f
parent7e547b230d384603bc438a8395975fa7a7378ae0 (diff)
downloadvolse-hubzilla-5b1a15704b81af507bddb623fefa3a9f416050b4.tar.gz
volse-hubzilla-5b1a15704b81af507bddb623fefa3a9f416050b4.tar.bz2
volse-hubzilla-5b1a15704b81af507bddb623fefa3a9f416050b4.zip
feature management
-rw-r--r--include/features.php32
-rw-r--r--version.inc2
2 files changed, 33 insertions, 1 deletions
diff --git a/include/features.php b/include/features.php
new file mode 100644
index 000000000..2bb874095
--- /dev/null
+++ b/include/features.php
@@ -0,0 +1,32 @@
+<?php
+
+/*
+ * Features management
+ */
+
+
+function feature_enabled($uid,$feature) {
+ $x = get_pconfig($uid,'feature',$feature);
+ $arr = array('uid' => $uid, 'feature' => $feature, 'enabled' => $x);
+ call_hooks('feature_enabled',$arr);
+ return($arr['enabled']);
+}
+
+function get_features() {
+
+$arr = array(
+
+'multi_delete' => t('Multiple Deletion'),
+'expire' => t('Content Expiration'),
+'commtag' => t('Community Tagging'),
+'categories' => t('Post Categories'),
+'filing' => t('Saved Folders'),
+'archives' => t('Archives'),
+
+
+
+);
+
+ call_hooks('get_features',$arr);
+ return $arr;
+} \ No newline at end of file
diff --git a/version.inc b/version.inc
index 08fd19399..1c422ffa2 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2012-10-25.118
+2012-10-26.119