$cms_message = $cms_language->getMessage(MESSAGE_PAGE_ACTION_SAVE_ERROR);
             } else {
                 $cms_message = $cms_language->getMessage(MESSAGE_ACTION_OPERATION_DONE);
                 $content = array('success' => true, 'id' => $item->getID());
             }
         }
     } else {
         $cms_message = $cms_language->getMessage(MESSAGE_PAGE_ACTION_ERROR_PROTECTED);
         $item->raiseError('Error during modification of category ' . $item->getID() . '. Category is protected.');
     }
     break;
 case 'delete':
     $category = new CMS_moduleCategory($categoryId);
     if (!$category->isProtected()) {
         $father = new CMS_moduleCategory($category->getAttribute('parentID'));
         if (CMS_moduleCategories_catalog::detachCategory($category)) {
             $cms_message = $cms_language->getMessage(MESSAGE_ACTION_OPERATION_DONE);
             $content = array('success' => true);
         } else {
             $cms_message = $cms_language->getMessage(MESSAGE_PAGE_ACTION_DELETE_ERROR);
         }
     } else {
         $cms_message = $cms_language->getMessage(MESSAGE_PAGE_ACTION_ERROR_PROTECTED);
         $category->raiseError('Error during modification of category ' . $category->getID() . '. Category is protected.');
     }
     break;
 case 'move':
     $category = new CMS_moduleCategory($categoryId);
     if (!$category->isProtected()) {
         $newParent = new CMS_moduleCategory($newParentId);
         if (!$newParentId) {