Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mailchimp-3400501
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
mailchimp-3400501
Commits
c70efa39
Commit
c70efa39
authored
9 years ago
by
Jami Dwyer
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2566295
: PHP unrecoverable error after v3.5 upgrade
parent
177d3956
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mailchimp.module
+0
-20
0 additions, 20 deletions
mailchimp.module
with
0 additions
and
20 deletions
mailchimp.module
+
0
−
20
View file @
c70efa39
...
...
@@ -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.
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment