aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Settings/Featured.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-06 20:10:56 -0700
committerredmatrix <mike@macgirvin.com>2016-09-06 20:10:56 -0700
commit6e149a2dd350d4037fb89f5bfa2246c5f9a94800 (patch)
tree5340a4f315352e67328a8c6dd516f3f5a2c871f5 /Zotlabs/Module/Settings/Featured.php
parent884bb60c7d05eba407ba044cc8e6f795db04c36f (diff)
downloadvolse-hubzilla-6e149a2dd350d4037fb89f5bfa2246c5f9a94800.tar.gz
volse-hubzilla-6e149a2dd350d4037fb89f5bfa2246c5f9a94800.tar.bz2
volse-hubzilla-6e149a2dd350d4037fb89f5bfa2246c5f9a94800.zip
turn Settings page into sub-modules
Diffstat (limited to 'Zotlabs/Module/Settings/Featured.php')
-rw-r--r--Zotlabs/Module/Settings/Featured.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/Zotlabs/Module/Settings/Featured.php b/Zotlabs/Module/Settings/Featured.php
new file mode 100644
index 000000000..7d7b1a734
--- /dev/null
+++ b/Zotlabs/Module/Settings/Featured.php
@@ -0,0 +1,37 @@
+<?php
+
+namespace Zotlabs\Module\Settings;
+
+
+class Featured {
+
+ function post() {
+ check_form_security_token_redirectOnErr('/settings/featured', 'settings_featured');
+
+ call_hooks('feature_settings_post', $_POST);
+
+ build_sync_packet();
+ return;
+ }
+
+ function get() {
+ $settings_addons = "";
+
+ $o = '';
+
+ $r = q("SELECT * FROM `hook` WHERE `hook` = 'feature_settings' ");
+ if(! $r)
+ $settings_addons = t('No feature settings configured');
+
+ call_hooks('feature_settings', $settings_addons);
+
+ $tpl = get_markup_template("settings_addons.tpl");
+ $o .= replace_macros($tpl, array(
+ '$form_security_token' => get_form_security_token("settings_featured"),
+ '$title' => t('Feature/Addon Settings'),
+ '$settings_addons' => $settings_addons
+ ));
+ return $o;
+ }
+
+} \ No newline at end of file