You are here

function location_location_from_node_ctools_relationships in Location 7.3

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.4 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',
    'edit form' => 'location_location_from_node_settings_form',
    'defaults' => array(
      'location_cck_field_name' => '',
      'location_cck_field_offset' => 0,
      'location_type' => NULL,
    ),
  );
}