function hook_rules_directory

Specifies directories for class-based plugin handler discovery.

Implementing this hook is not a requirement, it is just one option to load the files containing the classes during discovery - see rules_discover_plugins().

Return value

string|array A directory relative to the module directory, which holds the files containing rules plugin handlers, or multiple directories keyed by the module the directory is contained in. All files in those directories having a 'php' or 'inc' file extension will be loaded during discovery. Optionally, wildcards ('*') may be used to match multiple directories.

See also

rules_discover_plugins()

Related topics

1 invocation of hook_rules_directory()
RulesAbstractPlugin::includeFiles in includes/rules.core.inc
Makes sure all supported destinations are included.

File

./rules.api.php, line 248

Code

function hook_rules_directory() {
    return 'lib/Drupal/fluxtwitter/Rules/*';
}