see attached patch and info file
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | views_fusion_5_update_0.patch | 7.7 KB | neclimdul |
| #4 | views_fusion_5_update.patch | 7.62 KB | neclimdul |
| #3 | views_fusion_47_to_50.patch | 7.99 KB | jpetso |
| #2 | views_fusion.module.patch | 4.96 KB | boz |
| #1 | patch_164 | 4.45 KB | moshe weitzman |
Comments
Comment #1
moshe weitzman commentedand the patch
Comment #2
boz commentedI think
must be
patch attached
Comment #3
jpetso commentedThe callback arguments in hook_menu() must be an array, otherwise I get an error on fused view deletion (but interestingly not on the normal fusion overview). Also, updating the README is always a good idea.
Apart from that, the patch seems to be ok, the module works as expected. Please apply and open a DRUPAL-5 branch.
Comment #4
neclimdulPatch looks solid, I can't see why we need these dependencies checks though.
This patch goes ahead and removes them.
Comment #5
vm commentedaren't the dependency checks in place to insure that views is installed and enabled before views fusion is enabled ?
Comment #6
neclimdulIn 5 the dependency system will take care of this as far as this module is concerned. That should be taken care of by moshe's .info file. The only time there would be a problem where a module requires another module during its install hook but this is so rare I'm not sure anyone other than ECommerce has even noticed. ;P Not relevant to this module.
Comment #7
jpetso commentedWith the .info file, we can ensure that both Views and Nodefamily are enabled when Views Fusion is.
The check in views_fusion.module does not check on Nodefamily being available. It makes sure that there is at least one possible relationship that fused views can be built on. Of course, Nodefamily provides that relationship, but this is not written in stone. While it seems unprobable that views_fusion support in Nodefamily will be removed, it could definitely happen, for whatever reason.
I think it's not wrong to do defensive programming here, and leave the check in. Also, if other modules gain views_fusion support in the future then we may drop the Nodefamily dependency, and in that case the check is needed anyways.
Comment #8
vm commentedmy fault, i didn't realize the patch wasn't patching the .info file.
Comment #9
neclimdulI'm not going to argue about 3 lines. The rest of the dependency stuff is not needed though so I would suggest either this patch with the $tables['fields'] check or my patch in #4 without it. Doesn't matter to me as much as getting a 5 branch going so I can start using it :)
Comment #10
vm commentedno argument from me, I initally thought the patch was applied against the .info file. The title of the thread threw me off. Thus I thought the dependency checks being removed were being removed from the .info file and not from the previous patch. Which is what prompted my question.
again my apologies.
Comment #11
jpetso commentedRight, hunmonk's module dependency check is definitely not needed anymore. I second neclimdul's views_fusion_5_update_0.patch, please append the missing newline though before committing.
Comment #12
fagothanks, committed.
I've removed the dependency of the nodefamily module from the .info file, as it should work without too. E.g. an integration to the CCK nodereference field would make sense.
Comment #13
(not verified) commented