API page: http://api.drupal.org/api/views/views.api.php/function/hook_views_defaul...
Enter a descriptive title (above) relating to hook_views_default_views, then describe the problem you have found:
I believe the filename specified above is incorrect.
This hook should be placed in MODULENAME.views.inc and it will be auto-loaded. MODULENAME.views.inc must be in the directory specified by the 'path' key returned by MODULENAME_views_api(), or the same directory as the .module file, if 'path' is unspecified.
This should read:
This hook should be placed in MODULENAME.views_default.inc and it will be auto-loaded. MODULENAME.views_default.inc must be in the directory specified by the 'path' key returned by MODULENAME_views_api(), or the same directory as the .module file, if 'path' is unspecified.
See http://drupal.org/node/1849474 for description of problems encountered when the file is named MODULENAME.views.inc.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | views_api_doc-1852588-8.patch | 994 bytes | ivan zugec |
| #3 | views_api_doc-1852588-3.patch | 857 bytes | ivan zugec |
Comments
Comment #1
xanoComment #2
dawehner.
Comment #3
ivan zugec commentedThe documentation on api.drupal.org gets generated from the documentation within the files.
I have created a patch which updates the documentation as requested.
Comment #4
mducharme commentedIs there a way that the community can test/review this to get it RTBC?
Comment #5
dawehnerThank you for working on that.
This changes the description of hook_views_data not hook_views_default_views. If you move that, this looks fine!
Comment #6
Ozzie commentedThis patch applies without error.
Comment #7
Ozzie commentedUpdating status
Comment #8
ivan zugec commentedSorry about that, I have fixed up the patch and placed the documentation in the right area.
Comment #9
dawehnerPerfect, thank your for fixing this! Committed and pushed to 7.x-3.x