Altered View Warnings
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
This is a very small utility module that allows you to register a warning message each time you override part of a view in code.
It does this by providing hook_altered_view_warnings_info() you can implement every time you override a view:
/**
* Implements hook_altered_view_warnings_info().
*/
function example_altered_view_warnings_info(){
return array(
'view' => 'top_10_platypus_facts',
'message' => t('Query for the block display has been altered.'),
);
}
The warning message will be displayed on the view edit form of each view for which a message has been registered. In addition to that, a report listing all the overridden views for which a message has been registered, is made available.
When you're inheriting a site, or coming back to a site you haven't touched in a while, you can spend a lot of time trying to figure out why a view behaves differently than expected.
Using this module consistently as part of your view overriding shenanigans will make everyone more yay! and less booh!
