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.
The attached patch makes Block independent from Node. It is split off from #375397: Make Node module optional. There is one slight issue with node grants, but that has been solved with module_implements().
Comment | File | Size | Author |
---|---|---|---|
#11 | node_decouple_block_06.patch | 16.83 KB | Xano |
#9 | node_decouple_block_05.patch | 0 bytes | Xano |
#4 | node_decouple_block_04.patch | 16.4 KB | Xano |
#2 | node_decouple_block_03.patch | 16.48 KB | Xano |
node_decouple_block_02.patch | 16.45 KB | Xano | |
Comments
Comment #2
XanoComment #4
XanoComment #5
Frando CreditAttribution: Frando commentedThis is no good, you have to copy the schema array here as it was done in block.install. Otherwise, if the schema changes, the update would change as well which is bad because subsequent updates would fail. See http://drupal.org/node/150220 for details.
Otherwise, the patch looks great.
Comment #6
Frando CreditAttribution: Frando commentedComment #7
XanoI think we want {node_block_visibility} the same, regardless of whether we got it through an installation or an update.
Comment #8
Frando CreditAttribution: Frando commentedXano: With Schema API as it stands, we may not use hook_schema() declarations in hook_update_N. Please read http://drupal.org/node/150220, the explanation there is as good as it can be explained, so I won't try to explain it here in the issue.
Comment #9
XanoAh, thanks for the link :)
Comment #10
Frando CreditAttribution: Frando commentedempty patch file?
Comment #11
XanoCrappy internet connection. Cvs makes a new file, but due to the bad connection it has no contents to put in it.
Comment #13
alexanderpas CreditAttribution: alexanderpas commentedComment #14
valthebaldAccording to the latest 8.x, node is no more dependency for block.
I was able to disable node module (which in standard installation was required by comment, forum and book), and enter block configuration page
Comment #15
Xano