function _registerDataField($name) { $id = edit::registerDataField(); // FIXME: Temporary fix voor older code which still use registerDataField $context = pobject::getContext(); $me = $context["arCurrentObject"]; $prefix = edit::getEditPrefix(); echo "<script> parent.registerDataField('" . $prefix . $id . "','" . AddCSlashes($name, ARESCAPE) . "','" . $me->path . "'\n\t\t\t\t," . $me->id . "); </script>\n"; return $id; }