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

mitchell’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Component: Rules Engine » Rules Core
Category: support » feature
Status: Active » Postponed

It's not currently possible. Would you want to work on it?

Docs are at https://drupal.org/node/878928

alexweber’s picture

@mitchell, sure lemme see if I can throw something together

mitchell’s picture

Component: Rules Core » Documentation
Status: Postponed » Active

#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.

alexweber’s picture

@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.

alexweber’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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