From: Christian Weiske Date: Sun, 7 Nov 2010 12:38:15 +0000 (+0100) Subject: docblock for subscribe_to_feed X-Git-Tag: 1.5.0~347 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2b8290cd5b71e34904f6f0ce169d2ceaa07c3850;p=tt-rss.git docblock for subscribe_to_feed --- diff --git a/functions.php b/functions.php index 2373d543..7f24b4d0 100644 --- a/functions.php +++ b/functions.php @@ -2940,6 +2940,20 @@ print ""; } + /** + * 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 = '') {