function og_massadd_admin_settings in Organic Groups Mass Add 6
Same name and namespace in other branches
- 7 og_massadd.admin.inc \og_massadd_admin_settings()
Configure module.
1 string reference to 'og_massadd_admin_settings'
- og_massadd_menu in ./
og_massadd.module - Implement hook_menu
File
- ./
og_massadd.admin.inc, line 11 - Administration callbacks for the og_massadd module
Code
function og_massadd_admin_settings() {
$form['og_massadd_createunknowns'] = array(
'#type' => 'checkbox',
'#title' => t('Create unknown users.'),
'#description' => t('If this is set, users not present in the Drupal user table will be created.'),
'#default_value' => variable_get('og_massadd_createunknowns', FALSE),
);
if (module_exists('content_profile')) {
$form['og_massadd_profilenode'] = array(
'#type' => 'textfield',
'#title' => t('Name of content_profile node type.'),
'#description' => t('Enter the machine readable name of the content type you want og_massadd to use for content_profile creation, or leave empty for no profile creation.'),
'#default_value' => variable_get('og_massadd_profilenode', reset(array_keys(content_profile_get_types('names')))),
'#resizable' => FALSE,
);
$form['og_massadd_profilefname'] = array(
'#type' => 'textfield',
'#title' => t('Field for user\'s first name.'),
'#description' => t('Enter the machine readable name of the field that contains the user\'s first name or leave empty.'),
'#default_value' => variable_get('og_massadd_profilefname', 'firstname'),
'#resizable' => FALSE,
);
$form['og_massadd_profilelname'] = array(
'#type' => 'textfield',
'#title' => t('Field for user\'s last name.'),
'#description' => t('Enter the machine readable name of the field that contains the user\'s last name or leave empty.'),
'#default_value' => variable_get('og_massadd_profilelname', 'lastname'),
'#resizable' => FALSE,
);
}
return system_settings_form($form);
}