function l10n_update_xml_parser::data in Localization update 6
Same name and namespace in other branches
- 7 l10n_update.parser.inc \l10n_update_xml_parser::data()
File
- ./
l10n_update.parser.inc, line 125 - Extends the update parser to work with releases
Class
- l10n_update_xml_parser
- Parser for server metadata
Code
function data($parser, $data) {
if ($this->current_tag && !in_array($this->current_tag, array(
'L10N_SERVER',
'LANGUAGES',
'LANGUAGE',
))) {
$tag = strtolower($this->current_tag);
if (isset($this->current_object[$tag])) {
$this->current_object[$tag] .= $data;
}
else {
$this->current_object[$tag] = $data;
}
}
}