You are here

function i18nprofile_form_alter in Internationalization 5.2

Same name and namespace in other branches
  1. 5.3 i18nprofile/i18nprofile.module \i18nprofile_form_alter()
  2. 5 i18nprofile/i18nprofile.module \i18nprofile_form_alter()
  3. 6 i18nprofile/i18nprofile.module \i18nprofile_form_alter()

Implementation of hook_form_alter()

File

i18nprofile/i18nprofile.module, line 90

Code

function i18nprofile_form_alter($form_id, &$form) {
  if ($form_id == 'user_edit' && ($category = $form['_category']['#value'])) {

    //drupal_set_message("DEBUG:i18nprofile_form_alter, form_id=$form_id, category=$category");
    i18nprofile_form_translate($form_id, $form, $category);
  }
  elseif ($form_id == 'user_register') {
    i18nprofile_form_translate_all($form_id, $form);
  }
}