function RulesPlugin::importSettings

5 calls to RulesPlugin::importSettings()
RulesAbstractPlugin::import in includes/rules.core.inc
Applies the given export.
RulesCondition::import in includes/rules.plugins.inc
Applies the given export.
RulesContainerPlugin::import in includes/rules.core.inc
Applies the given export.
RulesLoop::importSettings in includes/rules.plugins.inc
RulesPlugin::import in includes/rules.core.inc
Applies the given export.
1 method overrides RulesPlugin::importSettings()
RulesLoop::importSettings in includes/rules.plugins.inc

File

includes/rules.core.inc, line 1353

Class

RulesPlugin
Base class for rules plugins.

Code

protected function importSettings($export) {
    // Import parameter settings.
    $export += array(
        'USING' => array(),
        'PROVIDE' => array(),
    );
    foreach ($export['USING'] as $name => $param_export) {
        $this->importParameterSetting($name, $param_export);
    }
    foreach ($export['PROVIDE'] as $name => $var_export) {
        // The key of $var_export is the variable name, the value the label.
        $this->settings[$name . ':var'] = rules_array_key($var_export);
        $this->settings[$name . ':label'] = reset($var_export);
    }
}