summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/omb.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/omb.php b/lib/omb.php
index 91c1906e3..9efdaff62 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -61,6 +61,19 @@ function omb_hmac_sha1() {
return $hmac_method;
}
+function omb_service_filter($type) {
+ return create_function('$s',
+ 'return omb_match_service($s, \''.$type.'\'');
+}
+
+function omb_match_service($service, $type) {
+ if ($service && $service->matchTypes(array($type))) {
+ return TRUE;
+ } else {
+ return FALSE;
+ }
+}
+
function omb_service_uri($service) {
$uris = $service->getURIs();
if (!$uris) {