You are here

function content_profile_action_load in Content Profile 6

Loads a Content Profile

1 string reference to 'content_profile_action_load'
nodeprofile_action_load_upgrade in ./content_profile.rules.inc

File

./content_profile.rules.inc, line 65
Some rules conditions/actions

Code

function content_profile_action_load($user, $settings) {
  if ($node = content_profile_load($settings['type'], $user->uid)) {
    return array(
      'profile_node' => $node,
    );
  }
}