When hook_form_alter() is called by field_permissions, it checks for the existence of $form['field']['settings']. Since the module has a weight of 0, there are cases when $form['field']['settings'] does not exist yet, thus field_permissions settings may not be visible. Using a bigger module weight fixes the problem.

CommentFileSizeAuthor
#1 field_permissions_weight.patch2.68 KBRobLoach
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RobLoach’s picture

Priority: Normal » Critical
Status: Active » Needs review
FileSize
2.68 KB

Yup! I also cleaned up the hook_form_alter() so that it's only on the Edit Tab so that users don't get too confused on the administration being on two pages. With the module Weight in there, we no longer need to check if $form['field']['settings'] exists, as we know it does.

RobLoach’s picture

jide’s picture

Nice !

Status: Fixed » Closed (fixed)

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