notifications->getMethodsAsDeprecatedGlobal(); foreach ($NOTIFICATION_HANDLERS as $method => $foo) { $subsbig[$method] = elgg_get_entities_from_relationship(array( 'relationship' => 'notify' . $method, 'relationship_guid' => $user->guid, 'type' => 'group', 'limit' => false, )); $tmparray = array(); if ($subsbig[$method]) { foreach($subsbig[$method] as $tmpent) { $tmparray[] = $tmpent->guid; } } $subsbig[$method] = $tmparray; } ?>