function account_sync_sender_settings in Account Sync 6
Same name and namespace in other branches
- 7.2 account_sync.admin.inc \account_sync_sender_settings()
1 string reference to 'account_sync_sender_settings'
- account_sync_menu in ./
account_sync.module - Implementation of hook_menu().
File
- ./
account_sync.admin.inc, line 76 - Admin settings for account_sync.
Code
function account_sync_sender_settings() {
$form = array();
$form['account_sync_enabled'] = array(
'#type' => 'checkbox',
'#title' => t('Enable account syncing'),
'#description' => t('If this is checked, then anytime an account is changed it will sync those changes to the servers listed below'),
'#default_value' => variable_get('account_sync_enabled', FALSE),
);
$form['account_sync_servers'] = array(
'#type' => 'textarea',
'#title' => t('Sites to send user account data to'),
'#description' => t("Enter each site you would like to sync accounts with. Each site should be on it's own line. Include <em>http://</em>."),
'#default_value' => variable_get('account_sync_servers', ''),
);
if (module_exists('profile')) {
$form['account_sync_profile_categories'] = array(
'#type' => 'checkboxes',
'#title' => t('Profile categories to sync'),
'#description' => t('Any categories or fields that do not exist on the target server will be ignored'),
'#options' => _account_sync_get_profile_categories(),
'#default_value' => variable_get('account_sync_profile_categories', array()),
);
}
return system_settings_form($form);
}