You are here

function customfilter_xml_filterset in Custom filter 5

1 call to customfilter_xml_filterset()
customfilter_xml_create in ./customfilter.module

File

./customfilter.module, line 1096

Code

function customfilter_xml_filterset($sid) {
  $filters = customfilter_get_filters($sid, 0);
  $set = customfilter_get_set($sid, '*');
  $xml = "  <filterset name=\"{$set['name']}\" cache=\"{$set['cache']}\">\n";
  $xml .= "    <description>{$set['description']}</description>\n";
  $xml .= "    <tips>\n";
  $xml .= "      <short><![CDATA[{$set['shorttips']}]]></short>\n";
  $xml .= "      <long><![CDATA[{$set['longtips']}]]></long>\n";
  $xml .= "    </tips>\n";
  $xml .= "    <filters>\n";
  foreach ($filters as $filter) {
    $xml .= customfilter_xml_filter($filter);
  }
  $xml .= "    </filters>\n";
  $xml .= "  </filterset>\n";
  return $xml;
}