+function unavailable_networks() {
+ $network_filter = "";
+
+ $networks = array();
+
+ if (!plugin_enabled("appnet")) {
+ $networks[] = NETWORK_APPNET;
+ }
+
+ if (!plugin_enabled("fbpost") && !plugin_enabled("facebook")) {
+ $networks[] = NETWORK_FACEBOOK;
+ }
+
+ if (!plugin_enabled("statusnet")) {
+ $networks[] = NETWORK_STATUSNET;
+ }
+
+ if (!plugin_enabled("pumpio")) {
+ $networks[] = NETWORK_PUMPIO;
+ }
+
+ if (!plugin_enabled("twitter")) {
+ $networks[] = NETWORK_TWITTER;
+ }
+
+ if (get_config("system", "ostatus_disabled")) {
+ $networks[] = NETWORK_OSTATUS;
+ }
+
+ if (!get_config("system", "diaspora_enabled")) {
+ $networks[] = NETWORK_DIASPORA;
+ }
+
+ if (!plugin_enabled("pnut")) {
+ $networks[] = NETWORK_PNUT;
+ }
+
+ if (!sizeof($networks)) {
+ return "";
+ }
+
+ $network_filter = implode("','", $networks);