// 'CustomAction', 'EditLanguage', 'FromLanguage', 'BrowseForObjects', 'UploadFileRelation', 'NewObject', 'BrowseForNodes', 'BrowseForPrimaryNodes', 'RemoveAssignments', 'DeleteRelation', 'DeleteNode', 'SectionEdit', 'StateEdit', 'MoveNode' ); $storingAllowed = ( in_array( $Module->currentAction(), $storeActions ) || eZContentObjectEditHandler::isStoreAction() ); if ( $http->hasPostVariable( 'CustomActionButton' ) ) $storingAllowed = true; $hasObjectInput = true; if ( $http->hasPostVariable( 'HasObjectInput' ) ) $hasObjectInput = $http->postVariable( 'HasObjectInput' ); $contentObjectDataMap = array(); foreach ( $contentObjectAttributes as $contentObjectAttribute ) { $contentObjectAttributeIdentifier = $contentObjectAttribute->attribute( 'contentclass_attribute_identifier' ); $contentObjectDataMap[$contentObjectAttributeIdentifier] = $contentObjectAttribute; } // These variables will be modified according to validation
$customActionAttributeArray = array(); // Check for custom actions if ($http->hasPostVariable("CustomActionButton")) { $customActionArray = $http->postVariable("CustomActionButton"); foreach ($customActionArray as $customActionKey => $customActionValue) { $customActionString = $customActionKey; if (preg_match("#^([0-9]+)_(.*)\$#", $customActionString, $matchArray)) { $customActionAttributeID = $matchArray[1]; $customAction = $matchArray[2]; $customActionAttributeArray[$customActionAttributeID] = array('id' => $customActionAttributeID, 'value' => $customAction); } } } eZContentObjectEditHandler::initialize(); $storeActions = array('Preview', 'Translate', 'TranslateLanguage', 'VersionEdit', 'Apply', 'Publish', 'Store', 'StoreExit', 'EditLanguage', 'FromLanguage', 'BrowseForObjects', 'UploadFileRelation', 'NewObject', 'BrowseForNodes', 'BrowseForPrimaryNodes', 'RemoveAssignments', 'DeleteRelation', 'DeleteNode', 'SectionEdit', 'StateEdit', 'MoveNode'); $storingAllowed = in_array($Module->currentAction(), $storeActions) || eZContentObjectEditHandler::isStoreAction(); if ($http->hasPostVariable('CustomActionButton')) { $storingAllowed = true; } $hasObjectInput = true; if ($http->hasPostVariable('HasObjectInput')) { $hasObjectInput = $http->postVariable('HasObjectInput'); } $contentObjectDataMap = array(); foreach ($contentObjectAttributes as $contentObjectAttribute) { $contentObjectAttributeIdentifier = $contentObjectAttribute->attribute('contentclass_attribute_identifier'); $contentObjectDataMap[$contentObjectAttributeIdentifier] = $contentObjectAttribute; } // These variables will be modified according to validation $inputValidated = true; $requireFixup = false;