function content_profile_user_has_profile_condition in Content Profile 6
2 string references to 'content_profile_user_has_profile_condition'
- content_profile_rules_defaults in ./
content_profile.rules_defaults.inc - Implementation of hook_rules_defaults(). Add a disabled default rule which redirects to the profile creation page, if users have no profile.
- nodeprofile_user_has_profile_condition_upgrade in ./
content_profile.rules.inc - Support upgrading from nodeprofile-workflow-ng integration.
File
- ./
content_profile.rules.inc, line 23 - Some rules conditions/actions
Code
function content_profile_user_has_profile_condition($user, $settings) {
$node = content_profile_load($settings['type'], $user->uid);
return (bool) $node;
}