Project description and development by hwi2
The Quick Views Display List is a quick and dirty list of all views and their associated displays. It is beneficial to views that have many displays. Each view hyperlink links to the parent view page and each display hyperlink links to its tab so editing of the display can be further edited.
Sometimes, getting to the exact display takes between 3 to 5 clicks, so this module was created to simplify the number of clicks and access the exact display you need. Also, for long display names, the tabs are usually cut off, so this list is great for that purpose.
Sandbox Page: https://www.drupal.org/sandbox/hwi2/2330527
GIT: https://git.drupal.org:sandbox/hwi2/2330527.git
For Views In Code
The module will not only find views in the database, but also views that are exported to code. In order coded views to be listed, the code must reside in an external file with "VIEW_NAME.views_default.inc", which is the standard way of using exported views. The view must also implement hook_views_api() in a module related to each coded view.
Available As A Page Or Block
For troubleshooting purposes during development of any Drupal website, a block is also available, but for better security, the list can be accessed in the Development section of the Configuration page.
Required Modules
Reviews of other projects
Taxonomy Tracking Module: https://www.drupal.org/comment/9120251/
GPA Calculator: https://www.drupal.org/node/2315327#comment-9120359
Image Style Mapping: https://www.drupal.org/node/2323567#comment-9120465
Document Library: https://www.drupal.org/node/2320783#comment-9120693
Page Background: https://www.drupal.org/node/2238015#comment-9122361
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | quick_views_errors.txt | 14.61 KB | rob.barnett |
Comments
Comment #1
shrop commentedI ran dursh coder on this module and there are a number of fixes that need to be made. Many of the changes are related to tab/specing issues. This needs to be fixed up before recommending the sandbox owner to have access to create full projects.
Here are some recommendations:
Coder findings can be seen below. Please fix and let me know. I can continue code review from there.
Comment #2
hwi2 commentedThanks, Mark. The warnings have been cleaned up. I used the Coder module.
From Coder:
Thanks!
Bruce
Comment #3
hwi2 commentedComment #4
hwi2 commentedComment #5
hwi2 commentedComment #6
hwi2 commentedComment #7
lokapujyaNice work on this module. I will be trying it out. Also, thanks for reviewing some of the other projects.
For example, in quick_views_display_list on line 221:
the output should be checked to make sure it doesn't contain HTML. Actually, you might want to look into using the l() function for creating links.
Those lines should be removed. It's only necessary to declare files[] if they declare a class or interface.
Please note: The Coder module currently has an unresolved flaw which will prompt you to add file declarations to your .info file even when it's not necessary to do so. Please do not try to make this warning go away by declaring files which do not contain classes or interfaces.
files[] = quick_views_display_list.views_default.inc
I don't see this file in the project.
Comment #8
lokapujyaComment #9
hwi2 commentedGood suggestions, lokapujya. Thanks!
Bruce
Comment #10
hwi2 commentedDear lokapujya,
I made the following changes:
1. Ran Coder in Minor and removed those issues.
2. Replaced all links with l(). Added XSS_filter and other security code.
3. Made changes to db tables.
4. Removed $files[] from the .info file.
Comment #11
hwi2 commentedComment #12
hwi2 commentedComment #13
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxhwi22330527git
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #14
rob.barnett commentedHi Bruce,
Fantastic module. Very useful. Attached are results from my automated review using codesniffer and drush - if you have drush installed: https://www.drupal.org/node/1419988: drush drupalcs
One point of confusion I had was after I installed your module and I go to Quick Views Display List, it shows views from a contrib module I have installed, Statuses, under Views in Database as just
Block
Defaults
Feed
Page
I looked at Statuses and its view comes from statuses/includes/views/statuses.views_default.inc. Shouldn't they appear under Views in Code? I'm also unclear why the have the generic titles: Block, Defaults, Feed, and Page. The other views show their view names.
Everything else displays correctly.
I would also suggest naming function list_table more specifically such as prefixing them with your module name. That way there is little risk in creating duplicate function names with other modules.
Excellent work.
Comment #15
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.