function RulesAbstractPlugin::loadBasicInclude

Loads this module's .rules.inc file.

Makes sure the providing modules' .rules.inc file is included, as diverse callbacks may reside in that file.

1 call to RulesAbstractPlugin::loadBasicInclude()
RulesAbstractPlugin::access in includes/rules.core.inc
Whether the currently logged in user has access to all configured elements.

File

includes/rules.core.inc, line 1814

Class

RulesAbstractPlugin
Defines a common base class for so-called "Abstract Plugins" like actions.

Code

protected function loadBasicInclude() {
    static $included = array();
    if (isset($this->info['module']) && !isset($included[$this->info['module']])) {
        $module = $this->info['module'];
        module_load_include('inc', $module, $module . '.rules');
        $included[$module] = TRUE;
    }
}