function delta_injection::config in Delta 7.3
@todo
1 call to delta_injection::config()
- delta_injection::inject in plugins/
delta/ delta_injection.inc - @todo
File
- plugins/
delta/ delta_injection.inc, line 27
Class
Code
function config($name) {
if (isset($this->settings[$name])) {
return $this->settings[$name];
}
if (!empty($this->delta->parent)) {
if ($plugin = delta_get_plugin($this->delta->parent, $this->plugin['name'])) {
$this->settings[$name] = isset($this->delta->settings[$name]) ? delta_merge($plugin
->config($name), $this->delta->settings[$name]) : $plugin
->config($name);
}
}
if (!isset($this->settings[$name])) {
$this->settings[$name] = isset($this->delta->settings[$name]) ? delta_merge(variable_get($name), $this->delta->settings[$name]) : variable_get($name);
}
return $this->settings[$name];
}