function user_relationships_activity_grants in User Relationships 7
Implements hook_activity_grants().
File
- ./
user_relationships.activity.inc, line 13 - provides the activity implementation for user_relationships module @todo: Port to D7 once activity.module is available. Maybe move to separate module.
Code
function user_relationships_activity_grants($activity) {
$relationships = array();
foreach (user_relationships_types_load() as $type_obj) {
$relationships["user_relationships_" . $type_obj->rtid] = array(
$activity->uid,
);
}
return $relationships;
}