diff --git sites/all/modules/contact_forms/contact_forms.module sites/all/modules/contact_forms/contact_forms.module index 3e9b57f..42510fb 100644 --- sites/all/modules/contact_forms/contact_forms.module +++ sites/all/modules/contact_forms/contact_forms.module @@ -18,7 +18,7 @@ function contact_forms_form_alter(&$form, $form_state, $form_id) { } // Alter all contact forms except for /contact - if ($form_id == 'contact_mail_page' && $path != 'contact') { + if ($form_id == 'contact_mail_page' && drupal_match_path($path, 'contact/*')) { $category = str_replace( array('-','_') , ' ' , arg(1)); $query = db_query("SELECT * FROM {contact} WHERE LOWER(category) = LOWER('%s')", $category);