You are here

function ctools_get_relationship in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/context.inc \ctools_get_relationship()

Fetch plugin metadata for a specific relationship plugin.

Parameters

$relationship: Name of a panel content type.

Return value

array An array with information about the requested relationship.

See also

ctools_get_relationships()

1 call to ctools_get_relationship()
ctools_entity_from_field_context in plugins/relationships/entity_from_field.inc
Return a new context based on an existing context.
1 string reference to 'ctools_get_relationship'
ctools_context_info in includes/context-admin.inc
Provide a list of the ways contexts can be embedded.

File

includes/context.inc, line 1287
Contains code related to the ctools system of 'context'.

Code

function ctools_get_relationship($relationship) {
  ctools_include('plugins');
  return ctools_get_plugins('ctools', 'relationships', $relationship);
}