Given the increasing number of people using views etc., I'm going to set up a module called something like 'stormviews' which can store examples of views, including any contributed ones.

Comments

Mark_Watson27’s picture

The way other projects handle this is at installation time they check for views and if there they install a bunch of them but don't enable them.
It would save on an additional module, just a thought.

Mark_Watson27’s picture

Done a bit more reading and stumbled across the Views API Reference on how to provide default views for modules
http://views.doc.logrus.com/group__views__hooks.html#g23edb74860682fa88f...

Magnity’s picture

Yes, it might be better to put them in with their 'home' modules rather than putting a new module in. I was thinking of allowing a load of contributed views for people to work from though, if it was part of the module I might vet them a little more carefully.

It wouldn't need a check for views though as if views was present it would fire the views hooks, and if it wasn't then it wouldn't.

Magnity’s picture

Status: Active » Closed (won't fix)

As Mark says, default views would be better in the relevant modules so marking to won't fix.