- return (in_array($type, array('string', 'array', 'bool')));
+ return (in_array($type, array('string', 'array', 'bool', 'int')));
+}
+
+// Checks if given condition is valid
+function isXmlConditionValid ($condition) {
+ // Trim and make lower-case
+ $condition = trim(strtolower($condition));
+
+ // Is it valid?
+ return (in_array($condition, array('equals')));