Skip to content
Snippets Groups Projects
Commit c70efa39 authored by Jami Dwyer's avatar Jami Dwyer
Browse files

Issue #2566295: PHP unrecoverable error after v3.5 upgrade

parent 177d3956
No related branches found
No related tags found
No related merge requests found
......@@ -1434,26 +1434,6 @@ function mailchimp_variable_info($options) {
return $variable;
}
/**
* Implementation of hook_form_alter()
*
* The Subscription checkbox for batch processing does not appear as checked
* until cron is run. The help text below provides a warning message about this.
*/
function mailchimp_form_user_profile_form_alter(&$form, &$form_state, $form_id) {
$batch = variable_get('mailchimp_cron');
if ($batch == 1) {
$form['#submit'][] = 'batch_process_warning';
}
}
function batch_process_warning($form, &$form_state) {
if (['mailchimp_cron'] == TRUE) {
drupal_set_message(t('Mailing list subscription settings will update soon.'));
}
}
/**
* Replace an array of merge field placeholder tokens with their values.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment