function rules_core_modules

Defines a list of core module on whose behalf we provide module integration.

We also add a pseudo 'data' module, which will be used for providing generic rules data integration, 'entity' for entity-related integration and 'rules' for providing some general stuff.

2 calls to rules_core_modules()
rules_rules_file_info in ./rules.rules.inc
Implements hook_rules_file_info().
_rules_rules_collect_items in ./rules.rules.inc
Returns all items for a hook applying the right module defaults.

File

./rules.rules.inc, line 23

Code

function rules_core_modules() {
    // Make use of the fast, advanced drupal static pattern.
    static $drupal_static_fast;
    if (!isset($drupal_static_fast)) {
        $drupal_static_fast =& drupal_static(__FUNCTION__);
    }
    $modules =& $drupal_static_fast;
    if (!isset($modules)) {
        $modules = array(
            'data',
            'entity',
            'node',
            'system',
            'user',
            'rules_core',
        );
        foreach (array(
            'comment',
            'taxonomy',
            'php',
            'path',
        ) as $module) {
            if (module_exists($module)) {
                $modules[] = $module;
            }
        }
    }
    return $modules;
}