public function load_feature_options_file(ICE_Feature $feature, $filename) { // try to parse the options file into INI sections $sections = parse_ini_file($filename, true); // get any sections? if (is_array($sections) && count($sections)) { // inject required feature directive into every option config foreach ($sections as $name => &$config) { // set the feature $config['feature'] = $feature->property('name'); } } // load the sections as normal return $this->load_config_sections($sections); }