/**
  * @param form_persistentdocument_baseform $document
  * @param string $forModuleName
  * @param array $allowedSections
  * @return array
  */
 public function getResume($document, $forModuleName, $allowedSections = null)
 {
     $resume = parent::getResume($document, $forModuleName, $allowedSections);
     $acknowledgmentNotification = $document->getAcknowledgmentNotification();
     if ($acknowledgmentNotification !== null) {
         $backUri = join(',', array('form', 'openDocument', 'modules_form_form', $document->getId(), 'resume'));
         $openAcknowledgmentNotificationUri = join(',', array('notification', 'openDocument', 'modules_notification_notification', $acknowledgmentNotification->getId(), 'properties'));
         $resume["properties"]["acknowledgmentNotification"] = array("uri" => $openAcknowledgmentNotificationUri, "label" => f_Locale::translateUI("&modules.uixul.bo.doceditor.open;"), "backuri" => $backUri);
     }
     return $resume;
 }
 /**
  * Moves $field into the destination node identified by $destId.
  * @param form_persistentdocument_field $field The field to move.
  * @param integer $destId ID of the destination node.
  * @param integer $beforeId
  * @param integer $afterId
  */
 public function moveTo($field, $destId, $beforeId = null, $afterId = null)
 {
     $fbs = form_BaseformService::getInstance();
     $fieldForm = $fbs->getAncestorFormByDocument($field);
     $destDocument = DocumentHelper::getDocumentInstance($destId);
     if ($destDocument instanceof form_persistentdocument_baseform) {
         $destForm = $destDocument;
     } else {
         $destForm = $fbs->getAncestorFormByDocument($destDocument);
     }
     if (!DocumentHelper::isEquals($destForm, $fieldForm)) {
         throw new form_FormException(f_Locale::translate('&modules.form.bo.errors.Cannot-move-a-field-from-a-form-to-another-form;'));
     }
     return parent::moveTo($field, $destId, $beforeId, $afterId);
 }