views/docs/views.api.php (docs.php in 6.x) says a few times:
This hook should be placed in MODULENAME.views.inc and it will be auto-loaded. This must either be in the same directory as the .module file or in a subdirectory named 'includes'.
and regarding hook_views_api:
path: (optional) If includes are stored somewhere other than within the root module directory or a subdirectory called includes, specify its path here.
Views/CTools don't look in includes, unless you specify so with path in hook_views_api. This is true of v3 for D7 (see ctools/includes/plugins.inc:139), v2 for D6 (see views/views.module:549), and v3 for D6 (see views/views.module:673).
The behavior was changed from: http://drupalcode.org/project/views.git/blame/17817645bda801280ef560ae61...
Patch forthcoming.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1121474-docs-includes-dir-1-D7.patch | 5.03 KB | quartsize |
Comments
Comment #1
quartsize CreditAttribution: quartsize commentedComment #2
dawehnerAssign to esmerel
Comment #3
esmerel CreditAttribution: esmerel commentedPushed to 7.x-3.x