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.
Hi,
searching a mailchimp form using:
function example_form_alter(&$form, &$form_state, $form_id) {
dsm($form_id); // print form ID to messages
dsm($form); // pretty print array using Krumo to messages
}
returns nothing... any ideas?
Thanks
Comments
Comment #2
samuel.mortenson@Funkwarrior I've definitely used hook_form_alter on a Mailchimp signup form before, could you post the code you're using, and if you're putting this in theme, verify that the theme is the same as the theme used to display the form (frontend forms can't alter backend forms)?