Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The following form definition code does not use the t() function for text:
$form['cron'] = array(
'#type' => 'checkbox',
'#title' => 'Use batch processing.',
'#description' => 'Puts all Mailchimp subscription operations into the cron queue. (Includes subscribe, update, and unsubscribe operations.) <i>Note: May cause confusion if caches are cleared, as requested changes will appear to have failed until cron is run.</i>',
'#default_value' => $config->get('cron'),
);
Comments
Comment #2
roland.molnar CreditAttribution: roland.molnar at Technocrat commentedComment #3
roland.molnar CreditAttribution: roland.molnar at Technocrat commentedComment #4
Greg BoggsThanks Roland,
Great catch!
Comment #5
Greg BoggsComment #6
asrobLooks good to me.
Comment #7
idebr CreditAttribution: idebr commentedComment #8
Greg BoggsThanks!
Comment #10
Greg Boggs