diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-01-14 18:14:30 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-01-14 18:14:30 +0100 |
commit | 72353bf0446901f1711cba7a2e50dbce9bd06227 (patch) | |
tree | 6b73f79bf7386e69e4941ff5a8b4c165830b1652 /include/config.php | |
parent | 42433c0b4442f1a6b451324fe7f765b1b4c354b8 (diff) | |
parent | 9f9fdc1434b7283171f8d843f225228cdb322115 (diff) | |
download | volse-hubzilla-72353bf0446901f1711cba7a2e50dbce9bd06227.tar.gz volse-hubzilla-72353bf0446901f1711cba7a2e50dbce9bd06227.tar.bz2 volse-hubzilla-72353bf0446901f1711cba7a2e50dbce9bd06227.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/config.php')
-rw-r--r-- | include/config.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/config.php b/include/config.php index c94d25eb8..f65e4a470 100644 --- a/include/config.php +++ b/include/config.php @@ -531,3 +531,22 @@ function del_xconfig($xchan, $family, $key) { ); return $ret; } + + +// account configuration storage is built on top of the under-utilised xconfig + +function load_aconfig($account_id) { + load_xconfig('a_' . $account_id); +} + +function get_aconfig($account_id, $family, $key) { + return get_xconfig('a_' . $account_id, $family, $key); +} + +function set_aconfig($account_id, $family, $key, $value) { + return set_xconfig('a_' . $account_id, $family, $key, $value); +} + +function del_aconfig($account_id, $family, $key) { + return del_xconfig('a_' . $account_id, $family, $key); +}
\ No newline at end of file |