diff options
author | friendica <info@friendica.com> | 2012-10-30 21:37:58 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-10-30 21:37:58 -0700 |
commit | fb173900a16938c3ab7f066e4909d50b9f764473 (patch) | |
tree | c5fae3b508000ed629b5483c573e07cea8b9565a /include/Contact.php | |
parent | ffadf260c0682e069ef81fe34c75e1217b7e37fb (diff) | |
download | volse-hubzilla-fb173900a16938c3ab7f066e4909d50b9f764473.tar.gz volse-hubzilla-fb173900a16938c3ab7f066e4909d50b9f764473.tar.bz2 volse-hubzilla-fb173900a16938c3ab7f066e4909d50b9f764473.zip |
more progress on address book
Diffstat (limited to 'include/Contact.php')
-rw-r--r-- | include/Contact.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php index c3600b9a3..485afa3ba 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -1,6 +1,24 @@ <?php +functino vcard_from_xchan($xchan) { + return replace_macros(get_markup_template('xchan_vcard.tpl'),array( + $name => $abook['xchan_name'], + $photo => $abook['xchan_photo_l'] + )); +} + +function abook_toggle_flag($abook,$flag) { + + $r = q("UPDATE abook set abook_flags = (abook_flags ^ %d) where abook_id = %d and abook_channel = %d limit 1", + intval($flag), + intval($abook['abook_id']), + intval($abook['abook_channel']) + ); + return $r; + +} + |