You are here

function content_profile_node_from_user_ctools_settings_form in Content Profile 6

Settings form for the relationship

1 string reference to 'content_profile_node_from_user_ctools_settings_form'
content_profile_node_from_user_ctools_relationships in panels/relationships/node_from_user.inc
Implementation of specially named hook_ctools_relationships().

File

panels/relationships/node_from_user.inc, line 56
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_settings_form($conf) {
  $options = content_profile_get_types('names');
  $form['type'] = array(
    '#type' => 'select',
    '#title' => t('Relationship type'),
    '#options' => $options,
    '#default_value' => $conf['type'],
  );
  return $form;
}