You are here

function node_gallery_api_relationship_type_load in Node Gallery 7

Object replacement function for hook_menu().

Parameters

int $id: The Entity ID of the gallery.

Return value

mixed|null A relationship array.

File

./node_gallery_api.module, line 269
Node Gallery module.

Code

function node_gallery_api_relationship_type_load($id) {
  $relationship_types = entity_load('node_gallery_relationship_type', array(
    $id,
  ));
  if (!empty($relationship_types)) {
    return array_shift($relationship_types);
  }
  return NULL;
}