summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-27 16:14:27 +0400
committerAndrew Dolgov <[email protected]>2013-03-27 16:15:25 +0400
commita413f53ebff7d28033090dc343d1ed1d0993ae0b (patch)
treedb02d7ab6427985603384ac489a72646e702befa /include
parentcedfac22e33b944c65675b4c939464344268bf58 (diff)
add experimental base for plugin vfeeds (3 pane mode not yet
implemented)
Diffstat (limited to 'include')
-rw-r--r--include/functions.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index b2f1a6559..c2bd7673b 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -3,6 +3,7 @@
define('SCHEMA_VERSION', 109);
define('LABEL_BASE_INDEX', -1024);
+ define('PLUGIN_FEED_BASE_INDEX', -128);
$fetch_last_error = false;
$pluginhost = false;
@@ -1430,6 +1431,20 @@
array_push($ret_arr, $cv);
}
+ global $pluginhost;
+
+ if ($pluginhost) {
+ $feeds = $pluginhost->get_feeds(-1);
+
+ foreach ($feeds as $feed) {
+ $cv = array("id" => PluginHost::pfeed_to_feed_id($feed['id']),
+ "counter" => $feed['sender']->get_unread($feed['id']));
+
+ array_push($ret_arr, $cv);
+ }
+
+ }
+
return $ret_arr;
}