You are here

function pcp_condition_check_profile_fields_completeness_form in Profile Complete Percent 5

Same name and namespace in other branches
  1. 6.2 pcp.module \pcp_condition_check_profile_fields_completeness_form()

Rules Condition form configuration - select the profile fields to check

See also

pcp_rules_condition_info

File

./pcp.module, line 362
Allows users with valid permissions to tag profile fields created from the profile module as required fields for a users profile to be considered complete.

Code

function pcp_condition_check_profile_fields_completeness_form($settings = array(), &$form) {
  $options = pcp_admin_settings_form_data();
  $form['settings']['profile_fields'] = array(
    '#title' => t('Profile Fields'),
    '#type' => 'checkboxes',
    '#options' => $options['profile_fields_options'],
    '#default_value' => isset($settings['profile_fields']) ? $settings['profile_fields'] : array(),
    '#description' => t('Check which fields the user has to fill in'),
  );
}