You are here

function user_relationships_type_machine_name_load in User Relationships 7

Public API for retrieving a specific relationship by machine name.

Parameters

$machine_name: The machine name identifying the relationship.

Return value

object of the requested relationship type

1 string reference to 'user_relationships_type_machine_name_load'
user_relationships_admin_type_edit in ./user_relationships.admin.inc
Relationship type edit page.

File

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

Code

function user_relationships_type_machine_name_load($machine_name) {
  return user_relationships_type_load(array(
    'machine_name' => $machine_name,
  ));
}