Hi,

I would like to hide the widget for select the language of administration from the user edit form.

in the configuration of Admin languages there is a setting:
Hide administration language on user form. This setting does not work.

See also the screenshots.

How can i hide the widget from the user edit form?

Thanks

Comments

luksak’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.1 KB

This patch fixes the issue.

Cyclodex’s picture

+++ b/admin_language.module
@@ -720,6 +723,8 @@ function _admin_language_user_form_remove_admin_language($form) {
+  dsm($form);

devel debug call: this should probably not be in the patch. And sidenote you should use dpm not dsm: https://api.drupal.org/api/devel/devel.module/function/dsm/7
doesn't matter so, just a detail :)

luksak’s picture

StatusFileSize
new1.33 KB

Removed the dsm.

stefan.r’s picture

Status: Needs review » Fixed

Committed and pushed to 7.x-1.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.