function mailchimp_ecommerce_admin_sync in Mailchimp E-Commerce 7
The Mailchimp eCommerce data sync form.
1 string reference to 'mailchimp_ecommerce_admin_sync'
- mailchimp_ecommerce_menu in ./
mailchimp_ecommerce.module - Implements hook_menu().
File
- includes/
mailchimp_ecommerce.admin.inc, line 243 - Administration forms for Mailchimp eCommerce.
Code
function mailchimp_ecommerce_admin_sync() {
$form['sync_products'] = [
'#type' => 'checkbox',
'#title' => t('Sync Products'),
'#description' => t('Sync all existing products to Mailchimp.'),
];
$form['actions']['submit'] = [
'#type' => 'submit',
'#value' => t('Sync with Mailchimp'),
];
$form['#submit'][] = 'mailchimp_ecommerce_admin_sync_submit';
return $form;
}