Do I need to write a hook or may be I can hide this using amdin interface? I am using Pathauto i18n, LoggingToBoggan. The option "Generate automatic URL alias for all languages" is displaying on user register form, and my users can't understand why. I want to hide it only on register form this code is not correct and does not work:
function my_user_register_form_form_user_register_form_alter(&$form, &$form_state, $form_id) {
/* hide Generate URL alias for all languages */
if (isset($form['pathauto_i18n_status'])) $form['pathauto_i18n_status']['und']['#access'] = FALSE;
}
hook_form_alter()
anddpm($form_id)
to make sure. Or justdie('yep')
in your hook.['und']
supposed to be there?