public function doExecute() { $strNormalizedSubject = $this->request->getProperty("subject"); $strUsername = $this->request->getProperty("username"); // Make sure they are logged in as the user they are trying to save as. $this->ensureSpecifiedUser(); $objData = new Xerxes_DataMap(); // Find the category $category = $objData->getSubject($strNormalizedSubject, null, Xerxes_DataMap::userCreatedMode, $strUsername); $objData->deleteUserCreatedCategory($category); // Send them back where they came from, with a message. $this->returnWithMessage($this->getLabel("text_collections_deleted_category", $category->name), array("base" => "collections", "action" => "list", "username" => $strUsername)); return 1; }