function i18n_contact_form_contact_site_form_alter in Internationalization 7
Implements hook_form_FORM_ID_alter().
File
- i18n_contact/
i18n_contact.module, line 65 - Internationalization (i18n) submodule: Multilingual contact forms
Code
function i18n_contact_form_contact_site_form_alter(&$form, &$form_state) {
// Example of array translation. The placeholder '*' indicates the name part to be replace by the array keys
if (isset($form['cid']['#options'])) {
$form['cid']['#options'] = i18n_string_translate("contact:category:*:category", $form['cid']['#options'], array(
'sanitize' => FALSE,
));
}
}