+// Handle network array translation form
+function doAdminNetworkProcessHandleArrayTranslations () {
+ // Is there selections?
+ if (ifPostContainsSelections()) {
+ // Init cache array
+ $GLOBALS['network_array_translation_disabled'] = array();
+
+ // Load network data
+ $networkData = getNetworkDataById(getRequestElement('network_id'));
+
+ // Something has been selected, so start displaying one by one
+ $OUT = '';
+ foreach (postRequestElement('sel') as $networkId => $sel) {
+ // Is this selected?
+ if ($sel == 1) {
+ // Load this network's data
+ $networkTranslationsData = getNetworkArrayTranslationsDataById($networkId);
+
+ // Is there found the network?
+ if (count($networkTranslationsData) > 0) {
+ if (isFormSent('edit')) {
+ // Add row template for deleting
+ $OUT .= loadTemplate('admin_edit_network_array_translation_row', TRUE, $networkTranslationsData);
+ } elseif (isFormSent('delete')) {
+ // Get type data
+ $networkTranslationsData['network_type_data'] = getNetworkTypeDataById($networkTranslationsData['network_type_id']);
+
+ // Add row template for deleting
+ $OUT .= loadTemplate('admin_delete_network_array_translation_row', TRUE, $networkTranslationsData);
+ } else {
+ // Problem!
+ reportBug(__FUNCTION__, __LINE__, 'Cannot detect edit/delete.');
+ }
+ } // END - if
+ } // END - if
+ } // END - foreach
+
+ // If we have no rows, we don't need to display the edit form
+ if (!empty($OUT)) {
+ // Prepare array with generic elements
+ $content = array(
+ 'rows' => $OUT,
+ 'network_id' => bigintval(getRequestElement('network_id'))
+ );
+
+ // Output main template
+ if (isFormSent('edit')) {
+ loadTemplate('admin_edit_network_array_translation', FALSE, $content);
+ } elseif (isFormSent('delete')) {
+ loadTemplate('admin_delete_network_array_translation', FALSE, $content);
+ } else {
+ // Problem!
+ reportBug(__FUNCTION__, __LINE__, 'Cannot detect edit/delete.');
+ }
+
+ // Don't display the list/add new form
+ $GLOBALS['network_display'] = FALSE;
+ } else {
+ // Nothing selected/found
+ loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_FOUND--}');
+ }
+ } // END - if
+}
+