function createItem(array $args = array()) { // Save the access property $this->properties['access']->setInputStatus(DataPropertyMaster::DD_INPUTSTATE_ADDMODIFY); // If multilanguages is not enabled just save the default language value if (!xarModVars::get('publications', 'multilanguage')) { if (isset($this->properties['locale'])) { $this->properties['locale']->setInputStatus(DataPropertyMaster::DD_INPUTSTATE_ADDMODIFY); } } // Ignore the position if this isn't the base document if (empty($this->properties['parent']->value)) { $this->properties['position']->setDisplayStatus(DataPropertyMaster::DD_DISPLAYSTATE_DISPLAYONLY); } else { $this->properties['position']->setDisplayStatus(DataPropertyMaster::DD_DISPLAYSTATE_DISABLED); } $this->fieldlist = array(); return parent::createItem($args); }