aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Contact.php18
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;
+
+}
+