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.

CommentFileSizeAuthor
#1 1121474-docs-includes-dir-1-D7.patch5.03 KBquartsize
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quartsize’s picture

Status: Active » Needs review
FileSize
5.03 KB
dawehner’s picture

Assigned: Unassigned » esmerel

Assign to esmerel

esmerel’s picture

Status: Needs review » Fixed

Pushed to 7.x-3.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.