public function FeedsConfigurable::addConfig in Feeds 7
Same name and namespace in other branches
- 6 includes/FeedsConfigurable.inc \FeedsConfigurable::addConfig()
- 7.2 includes/FeedsConfigurable.inc \FeedsConfigurable::addConfig()
Similar to setConfig but adds to existing configuration.
Parameters
$config: Array containing configuration information. Will be filtered by the keys returned by configDefaults().
1 call to FeedsConfigurable::addConfig()
- FeedsConfigurable::configFormSubmit in includes/
FeedsConfigurable.inc - Submission handler for configForm().
File
- includes/
FeedsConfigurable.inc, line 125 - FeedsConfigurable and helper functions.
Class
- FeedsConfigurable
- Base class for configurable classes. Captures configuration handling, form handling and distinguishes between in-memory configuration and persistent configuration.
Code
public function addConfig($config) {
$this->config = array_merge($this->config, $config);
$default_keys = $this
->configDefaults();
$this->config = array_intersect_key($this->config, $default_keys);
}