function hook_rules_file_info
Specify files containing rules integration code.
All files specified in that hook will be included when rules looks for existing callbacks for any plugin. Rules remembers which callback is found in which file and automatically includes the right file before it is executing a plugin method callback. The file yourmodule.rules.inc is added by default and need not be specified here. This allows you to add new include files only containing functions serving as plugin method callbacks in any file without having to care about file inclusion.
Return value
array An array of file names without the file ending which defaults to '.inc'.
Related topics
2 functions implement hook_rules_file_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- rules_rules_file_info in ./
rules.rules.inc - Implements hook_rules_file_info().
- rules_test_rules_file_info in tests/
rules_test.rules.inc - Implements hook_rules_file_info().
2 invocations of hook_rules_file_info()
- RulesAbstractPlugin::getIncludeFiles in includes/
rules.core.inc - Returns all include files for a module.
- RulesAbstractPlugin::includeFiles in includes/
rules.core.inc - Makes sure all supported destinations are included.
File
-
./
rules.api.php, line 227
Code
function hook_rules_file_info() {
return array(
'yourmodule.rules-eval',
);
}