You are here

function content_profile_node_from_user_ctools_relationships in Content Profile 6

Implementation of specially named hook_ctools_relationships().

File

panels/relationships/node_from_user.inc, line 12
Provides a CTools (Panels) relationship that gets a node context from the user context based on nodes marked as content profiles.

Code

function content_profile_node_from_user_ctools_relationships() {
  $args['node_from_user'] = array(
    'title' => t("Profile Node"),
    'keyword' => 'content_profile',
    'description' => t('Adds a Content Profile from user context'),
    'required context' => new ctools_context_required(t('User'), 'user'),
    'context' => 'content_profile_node_from_user_ctools_context',
    'settings form' => 'content_profile_node_from_user_ctools_settings_form',
    'settings form validate' => 'content_profile_node_from_user_ctools_settings_form_validate',
  );
  return $args;
}