aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/plugins.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 16:27:05 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 16:27:05 +0000
commit737394eb15a2ef0c1f5a085d7f5958d2f3e66b89 (patch)
treed3d3d9f880e9ffd63b73d9f3ab83c1ce0fda825f /engine/lib/plugins.php
parentdc28ff0bed2216d97e24b1286c68190c843cb684 (diff)
downloadelgg-737394eb15a2ef0c1f5a085d7f5958d2f3e66b89.tar.gz
elgg-737394eb15a2ef0c1f5a085d7f5958d2f3e66b89.tar.bz2
Refs #76: User settings page (to Elgg Classic standard). Committing some work before shutting down for the day.
git-svn-id: https://code.elgg.org/elgg/trunk@1068 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/plugins.php')
-rw-r--r--engine/lib/plugins.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php
index c3f1d0d25..073869a52 100644
--- a/engine/lib/plugins.php
+++ b/engine/lib/plugins.php
@@ -171,6 +171,42 @@
return false;
}
+
+ /**
+ * Find the plugin settings for a user.
+ *
+ * @param string $plugin_name Plugin name.
+ * @param int $user_guid The guid who's settings to retrieve.
+ */
+ function find_plugin_usersettings($plugin_name = "", $user_guid = 0)
+ {
+ $plugin_name = sanitise_string($plugin_name);
+ $user_guid = (int)$user_guid;
+
+ if (!$plugin_name)
+ $plugin_name = get_plugin_name();
+
+ if ($user_guid == 0) $user_guid = $_SESSION['user']->guid;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ return false;
+ }
/**
* Set a setting for a plugin.