diff --git a/salsa_advocacy/salsa_advocacy.module b/salsa_advocacy/salsa_advocacy.module index 31b05ce..852c913 100644 --- a/salsa_advocacy/salsa_advocacy.module +++ b/salsa_advocacy/salsa_advocacy.module @@ -663,6 +663,15 @@ function salsa_advocacy_targeted_form_hidden_fields(&$form, $form_state) { '#type' => 'hidden', '#value' => $form_state['salsa_object']->redirect_path, ); + + // Add field for the supporter language, unless setting it was disabled. + if (variable_get('salsa_entity_set_supporter_language', TRUE)) { + global $language; + $form['Supporter_Info']['Language_Code'] = array( + '#type' => 'hidden', + '#value' => SalsaEntityLanguageMapper::toIso639_2($language->language), + ); + } } /**