You are here

function user_relationships_activity_info in User Relationships 7

Implements hook_activity_info().

File

./user_relationships.module, line 378
User Relationships API. Module shell.

Code

function user_relationships_activity_info() {
  $info = new stdClass();
  $info->api = 2;
  $info->name = 'user_relationships';
  $info->object_type = 'user_relationships';
  $info->objects = array(
    'Requester' => 'requester',
    'Requestee' => 'requestee',
    'Relationship' => 'relationship',
  );
  $info->hooks = array(
    'user_relationships' => array(
      'approve',
      'request',
    ),
  );
  foreach (user_relationships_types_load() as $type_obj) {
    $info->realms["user_relationships_" . $type_obj->rtid] = $type_obj->plural_name;
  }
  return $info;
}