function mailchimp_lists_forms in Mailchimp 7.2
Same name and namespace in other branches
- 7.5 modules/mailchimp_lists/mailchimp_lists.module \mailchimp_lists_forms()
- 7.3 modules/mailchimp_lists/mailchimp_lists.module \mailchimp_lists_forms()
- 7.4 modules/mailchimp_lists/mailchimp_lists.module \mailchimp_lists_forms()
Implements hook_forms().
File
- modules/
mailchimp_lists/ mailchimp_lists.module, line 981 - Mailchimp lists module.
Code
function mailchimp_lists_forms($form_id, $args) {
// Map all instances of mailchimp_lists_user_subscribe_form to a single form
// factory. Needed in case more than one block appears on a single page.
if (strpos($form_id, 'mailchimp_lists_user_subscribe_form') !== FALSE) {
$forms[$form_id] = array(
'callback' => 'mailchimp_lists_user_subscribe_form',
);
return $forms;
}
}