summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorChristian Weiske <[email protected]>2010-11-07 13:38:15 +0100
committerAndrew Dolgov <[email protected]>2010-11-08 23:12:25 +0300
commit2b8290cd5b71e34904f6f0ce169d2ceaa07c3850 (patch)
treeb22229dab4787ef08f015787fad08a9f8b7764e5 /functions.php
parentf0266f51ab36bf389415bcac9fe26c8084c67bdd (diff)
docblock for subscribe_to_feed
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 2373d5435..7f24b4d06 100644
--- a/functions.php
+++ b/functions.php
@@ -2940,6 +2940,20 @@
print "</rpc-reply>";
}
+ /**
+ * Subscribes the user to the given feed
+ *
+ * @param resource $link Database connection
+ * @param string $url Feed URL to subscribe to
+ * @param integer $cat_id Category ID the feed shall be added to
+ * @param string $auth_login (optional) Feed username
+ * @param string $auth_pass (optional) Feed password
+ *
+ * @return integer Status code:
+ * 0 - OK, Feed already exists
+ * 1 - OK, Feed added
+ * 2 - Invalid URL
+ */
function subscribe_to_feed($link, $url, $cat_id = 0,
$auth_login = '', $auth_pass = '') {