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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | field_permissions_weight.patch | 2.68 KB | robloach |
Comments
Comment #1
robloachYup! 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.
Comment #2
robloachhttp://drupalcode.org/project/field_permissions.git/commit/b4d8f67
Comment #3
jide commentedNice !