You are here

function location_location_from_node_ctools_relationships in Location 7.4

Same name and namespace in other branches
  1. 6.3 plugins/relationships/location_from_node.inc \location_location_from_node_ctools_relationships()
  2. 7.5 plugins/relationships/location_from_node.inc \location_location_from_node_ctools_relationships()
  3. 7.3 plugins/relationships/location_from_node.inc \location_location_from_node_ctools_relationships()

Implement hook_[relationship_name]_ctools_relationships().

File

plugins/relationships/location_from_node.inc, line 11
Plugin to provide an relationship handler for location data from node.

Code

function location_location_from_node_ctools_relationships() {
  return array(
    'title' => t('Node location'),
    'keyword' => 'location',
    'description' => t('Creates a location context from a node.'),
    'required context' => new ctools_context_required(t('Node'), 'node'),
    'context' => 'location_location_from_node_context',
    'settings form' => 'location_location_from_node_settings_form',
  );
}