Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: jide commentedNice !