Closed (fixed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2012 at 15:01 UTC
Updated:
11 Jun 2012 at 19:01 UTC
I like to keep my module's includes in an "includes" subdirectory, but rules doesn't seem to find "mymodule.rules.inc" in there (it works fine when in the module root directory).
I tried specifying the file using hook_rules_file_info() but that didn't work either.
Could anyone point me in the right direction please?
Thanks!
Comments
Comment #1
mitchell commentedIt's not currently possible. Would you want to work on it?
Docs are at https://drupal.org/node/878928
Comment #2
alexweber commented@mitchell, sure lemme see if I can throw something together
Comment #3
mitchell commented#1289558-2: Can mymodule.rules.inc be in different directory? leads me to believe we can't do anything about this. Please update this if there's a core issue where this as addressed.
alexweber, could you please update the docs page to reflect this?
Also leaving #1452540: Rules doesn't load rules.inc files as expected here for future reference.
Comment #4
alexweber commented@mitchell that's weird because of how Views does it. I think it finds views.inc anywhere in the module folder. I'll check it out but either will will update the docs for now.
Comment #5
alexweber commentedDocumentation updated!