In order to make the functionality more reusable, I suggest moving the system display plugin into a submodule on its own, that way it can be used independently of the bundled functionality. It would also resolve problems whereby disabling the module leads to WSOD errors, e.g. as reported in #2386841: Disable all bundled views by default.
| Comment | File | Size | Author |
|---|---|---|---|
| #26 | admin_views-n2411193-26.patch | 11.86 KB | damienmckenna |
Comments
Comment #1
damiankloip commentedYes, this is something we have talked about before, some people wanted to use this display plugin only. I am for this.
Comment #2
damienmckennaComment #3
damienmckennaWIP, needs some testing.
Comment #4
damienmckennaSome updates - the hook_install() had to be moved over, as did the CSS and the access_menu plugin.
Comment #5
damienmckennaFYI I had problems getting the patch to apply, so here's a zip of the new files.
Comment #6
damienmckennaI suspect it may patch correctly when you use "git apply", I used "patch -p1" and it threw up all over my laptop.
Comment #8
damienmckennaRerolled.
Comment #9
damiankloip commentedThis should just use $return variable and add this message instead. I don't think a dsm() is useful for things like drush.
Just for completeness, related to this, we should probably reset the admin_view module weight if we only need it here now?
Just a couple of things, otherwise looks fine to me!
Comment #10
chris matthews commentedComment #11
damienmckennaSo, something like this?
Comment #12
damienmckennaThis isn't working right, it totally breaks the admin pages. Dangit.
Comment #13
damienmckennaExpanded test coverage to make sure the content admin page loads as intended.
Comment #14
damienmckennaOk.. there's something weird.. it fails for me sometimes and doesn't other times. Not sure what's going on :-\
Comment #16
damienmckennaForgot to rename the CSS file.
Comment #18
damienmckennaThe test that fails here works locally. I wonder if it's a bug in Views that's fixed in the dev snapshot but is broken in the current 3.22 stable release?
Comment #20
damienmckennaComment #21
damienmckennaLet's see if this works now with Views 7.x-3.23..
Comment #22
damienmckennaComment #23
damienmckennaAnd the tests are green! Woot!
Comment #24
damienmckennaFYI if you use "patch -p1" to apply the patch it will fail to rename the CSS file, you need to run
mv admin_views.css admin_views_system_display.css, otherwise you'll be missing the CSS changes and will get errors saying it can't find the CSS file.Comment #25
chris matthews commentedComment #26
damienmckennaRerolled.
Comment #28
damienmckennaCommitted. Thanks.