function pcp_admin_settings_form in Profile Complete Percent 5
Same name and namespace in other branches
- 6.2 pcp.module \pcp_admin_settings_form()
- 6 pcp.module \pcp_admin_settings_form()
Admin settings form
1 string reference to 'pcp_admin_settings_form'
- pcp_admin_settings in ./
pcp.module - Menu Callback Function Build output of the pcp module settings which allows the administrator to tag specific profile fields which will be used to determine the completion of a users profile.
File
- ./
pcp.module, line 126 - 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_admin_settings_form() {
$options = pcp_admin_settings_form_data();
$form = array();
$form['profile_fields'] = array(
'#title' => t('Profile Fields'),
'#type' => 'checkboxes',
'#options' => $options['profile_fields_options'],
'#default_value' => $options['default_values'],
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}