<?php BTXSocialFeed::sync(); $admin->growl("Social Feed", "Synced Stream"); BigTree::redirect(MODULE_ROOT);
<?php BigTree::globalizePOSTVars(); if ($type == "Location") { list($lat, $lon) = explode(" ", $query); $query = array("latitude" => $lat, "longitude" => $lon, "radius" => $radius); } $id = BigTreeAutoModule::createItem("btx_social_feed_queries", array("service" => $service, "type" => $type, "query" => $query, "cached_info" => $cached_info), $category_parser); BTXSocialFeed::sync($id); $admin->growl("Social Feed", "Created Query"); BigTree::redirect(MODULE_ROOT . "view-queries/");
<?php BTXSocialFeed::deleteQuery($bigtree["commands"][0]); $admin->growl("Social Feed", "Deleted Query"); BigTree::redirect(MODULE_ROOT . "view-queries/");
<?php BigTree::globalizePOSTVars(); if ($type == "Location") { list($lat, $lon) = explode(" ", $query); $query = json_encode(array("latitude" => $lat, "longitude" => $lon, "radius" => $radius)); } BigTreeAutoModule::updateItem("btx_social_feed_queries", $bigtree["commands"][0], array("service" => $service, "type" => $type, "query" => $query, "cached_info" => $_POST["cached_info"]), $category_parser); BTXSocialFeed::sync($bigtree["commands"][0]); $admin->growl("Social Feed", "Updated Query"); BigTree::redirect(MODULE_ROOT . "view-queries/");