You are here

function nat_nat_node_from_term_ctools_relationships in Node Auto Term [NAT] 7.2

Implementation of specially named hook_ctools_relationships().

File

includes/ctools/relationships/nat_node_from_term.inc, line 12
Provides a CTools (Panels) relationship that gets a node context from a term created by NAT.

Code

function nat_nat_node_from_term_ctools_relationships() {
  $args['nat_node_from_term'] = array(
    'title' => t("Node from term (NAT)"),
    'keyword' => 'nat_node',
    'description' => t('Adds a NAT node from term context'),
    'required context' => new ctools_context_required(t('Term'), 'entity:taxonomy_term'),
    'context' => 'nat_nat_node_from_term_ctools_context',
  );
  return $args;
}