You are here

public function FeedsConfigurable::setConfig in Feeds 7.2

Same name and namespace in other branches
  1. 6 includes/FeedsConfigurable.inc \FeedsConfigurable::setConfig()
  2. 7 includes/FeedsConfigurable.inc \FeedsConfigurable::setConfig()

Set configuration.

Parameters

array $config: Array containing configuration information. Config array will be filtered by the keys returned by configDefaults() and populated with default values that are not included in $config.

1 call to FeedsConfigurable::setConfig()
FeedsConfigurable::copy in includes/FeedsConfigurable.inc
Copy a configuration.

File

includes/FeedsConfigurable.inc, line 189
FeedsConfigurable and helper functions.

Class

FeedsConfigurable
Base class for configurable classes.

Code

public function setConfig($config) {
  $defaults = $this
    ->configDefaults();
  $this->config = array_intersect_key($config, $defaults) + $defaults;
}