Closed hosef closed 3 years ago
I haven't had any problems with the file not getting picked up. Isn't any file ending in .views.inc
in the module directory picked up by views? Usually the only code that goes into the views
directory are PHP classes that are specific to views. Having the *.views.inc
file in the root directory is also more useful (to humans) because it indicates that the module contains views integration at first glance. I don't think I'm in favor of this change.
Isn't any file ending in
.views.inc
in the module directory picked up by views?
No, it only looks in the directory specified by your path in hook_views_api
This is ringing a bell. Is the module broken for you now without this change? I'll check my sites that are using reference views and see what state they are in too...
Yeah, I checked that it did not show up, and then moved the file and it worked.
Fair enough.
Issue #21: Moving reference.views.inc into the views directory so that it will get included by views.