Files system.xmlnever merge with global configuration. They only load when Magento creates a user interface for
System -> Configuration
backend admin applications. In addition, the application does not use them.
If you want to capture a shortcut, you will need to download the full configuration system.xmlyourself. Something like this should work.
$config = Mage::getConfig()->loadModulesConfiguration('system.xml');
var_dump($config->getNode('sections')->asXml());
var_dump((string)$config->getNode('sections/dev/groups/restrict/label'));
As mentioned in another answer in this thread, there is also a model class adminhtml/configthat wraps part of this logic in the method getSection, so you can do something like this.
Mage::getSingleton('adminhtml/config')->getSection('dev')->groups->my_module->label
If you look at the source getSection
public function getSections($sectionCode=null, $websiteCode=null, $storeCode=null)
{
if (empty($this->_sections)) {
$this->_initSectionsAndTabs();
}
return $this->_sections;
}
and follow the call stack until _initSectionsAndTabs
protected function _initSectionsAndTabs()
{
$config = Mage::getConfig()->loadModulesConfiguration('system.xml')
->applyExtends();
Mage::dispatchEvent('adminhtml_init_system_config', array('config' => $config));
$this->_sections = $config->getNode('sections');
$this->_tabs = $config->getNode('tabs');
}
, loadModulesConfiguration. applyExtends, , , . (self-links, StackOverflow).
, , - ,
Mage::dispatchEvent('adminhtml_init_system_config', array('config' => $config));
, , . XML. , , . , .