function mailchimp_admin_settings in Mailchimp 7.2
Same name and namespace in other branches
- 5.2 mailchimp.module \mailchimp_admin_settings()
- 5 mailchimp.module \mailchimp_admin_settings()
- 6.2 mailchimp.admin.inc \mailchimp_admin_settings()
- 6 mailchimp.module \mailchimp_admin_settings()
- 7.5 includes/mailchimp.admin.inc \mailchimp_admin_settings()
- 7 mailchimp.admin.inc \mailchimp_admin_settings()
- 7.3 includes/mailchimp.admin.inc \mailchimp_admin_settings()
- 7.4 includes/mailchimp.admin.inc \mailchimp_admin_settings()
Return the MailChimp global settings form.
1 string reference to 'mailchimp_admin_settings'
- mailchimp_menu in ./
mailchimp.module - Implements hook_menu().
File
- includes/
mailchimp.admin.inc, line 11 - Mailchimp module admin settings.
Code
function mailchimp_admin_settings() {
$form['mailchimp_api_key'] = array(
'#type' => 'textfield',
'#title' => t('Mailchimp API Key'),
'#required' => TRUE,
'#default_value' => variable_get('mailchimp_api_key', ''),
'#description' => t('The API key for your MailChimp account. Get or generate a valid API key at your !apilink.', array(
'!apilink' => l(t('MailChimp API Dashboard'), 'http://admin.mailchimp.com/account/api'),
)),
);
$form['mailchimp_batch_limit'] = array(
'#type' => 'select',
'#options' => array(
'1' => '1',
'10' => '10',
'25' => '25',
'50' => '50',
'75' => '75',
'100' => '100',
'250' => '250',
'500' => '500',
'750' => '750',
'1000' => '1000',
'2500' => '2500',
'5000' => '5000',
'7500' => '7500',
'10000' => '10000',
),
'#title' => t('Batch limit'),
'#description' => t('Maximum number of users to process in a single cron run. Mailchimp suggest keeping this below 5000-10000. Ignored if updates take place on user add / edit.'),
'#default_value' => variable_get('mailchimp_batch_limit', 100),
);
$form['mailchimp_use_secure'] = array(
'#type' => 'checkbox',
'#title' => t('Use Secure Connection'),
'#default_value' => variable_get('mailchimp_use_secure', TRUE),
"#description" => t('Communicate with the MailChimp API over a secure connection.'),
);
return system_settings_form($form);
}