You are here

function patterns_d2d_get_friend in Patterns 7

Same name and namespace in other branches
  1. 7.2 patterns_d2d/includes/patterns_d2d.form.inc \patterns_d2d_get_friend()

@file Push public patterns to friend instances.

2 calls to patterns_d2d_get_friend()
patterns_d2d_push_patterns_client in patterns_d2d/includes/patterns_d2d.srpc.inc
patterns_d2d_share_patterns in patterns_d2d/includes/patterns_d2d.form.inc

File

patterns_d2d/includes/patterns_d2d.form.inc, line 7
Push public patterns to friend instances.

Code

function patterns_d2d_get_friend($url) {
  $friends = drupaltodrupal_get_friends();
  foreach ($friends as $friend) {
    if ($friend['url'] === $url) {
      return $friend;
    }
  }
  return FALSE;
}