Why does this module require the Fields UI module? I like to disable that when its not in use to reduce the amount of PHP needed to compile each page (think "disable developer modules"). Can you remove that dependency?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | remove-field-ui-dependency-1114134-4.patch | 1.63 KB | joelstein |
| #1 | remove-field_ui-dependency-1114134-1.patch | 361 bytes | geerlingguy |
Comments
Comment #1
geerlingguy commentedSubscribe, and seconded. While this module is dependent on fields_ui to configure the fields (at least, normally), its main functionality (that is, providing access control for fields) has no dependency on the fileds_ui module to continue working.
Comment #2
joelstein commentedAnd, since Admin Menu added Fields UI to its list of developer modules, this seems like an ideal time to remove this dependency.
Comment #3
fietserwin- I think that the readme should be updated to reflect this change as well.
- Aren't there any dependencies in the part of the code that also gets executed in non developer mode?
Comment #4
joelstein commentedHere's an updated patch with revised instructions in README.txt. And no, there is no part of this module which executes code in Field UI except for that which is needed for configuration. I've been using patch (in #1 above) for many months now with great success.
Comment #5
fietserwinPatch is OK and my concern has been taken away by the previous comment...
Comment #6
geerlingguy commentedLooks good to me too!
Comment #7
joelstein commentedGreat, can we get this committed?
Comment #8
robloachThanks a lot, guys! http://drupalcode.org/project/field_permissions.git/commit/62a8b98
Comment #10
arpas commentedBut one problem rest. If I go to the page admin/reports/fields/permissions I get an error 'Fatal error: Call to undefined function _field_ui_bundle_admin_path()'. I suggest to change this error to "Enable/install Field UI module" but I don't know how.
Comment #13
mariacha1 commentedRemaining issue is covered in https://www.drupal.org/node/2364587 and doesn't seem to be a problem in D8. (I think)