Adding more content parts descriptions

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2013-05-22 14:59:18 -07:00
parent 8f35372f70
commit 0ddd66476a
4 changed files with 34 additions and 0 deletions

View File

@@ -46,6 +46,19 @@ namespace Orchard.AntiSpam {
return 2;
}
public int UpdateFrom2() {
ContentDefinitionManager.AlterPartDefinition("SpamFilterPart", builder => builder
.WithDescription("Allows to filter submitted content items based on spam filters."));
ContentDefinitionManager.AlterPartDefinition("SubmissionLimitPart", builder => builder
.WithDescription("Allows to filter content items based on submissions frequency."));
ContentDefinitionManager.AlterPartDefinition("ReCaptchaPart", builder => builder
.WithDescription("Ensures content items are submitted by humans only."));
return 3;
}
}

View File

@@ -17,5 +17,12 @@ namespace Orchard.Localization {
return 1;
}
public int UpdateFrom1() {
ContentDefinitionManager.AlterPartDefinition("LocalizationPart", builder => builder
.WithDescription("Provides the user interface to localize content items."));
return 2;
}
}
}

View File

@@ -9,5 +9,12 @@ namespace Orchard.PublishLater {
return 1;
}
public int UpdateFrom1() {
ContentDefinitionManager.AlterPartDefinition("PublishLaterPart", builder => builder
.WithDescription("Adds the ability to delay the publication of a content item to a later date and time."));
return 2;
}
}
}

View File

@@ -28,5 +28,12 @@ namespace Orchard.Tags {
return 1;
}
public int UpdateFrom1() {
ContentDefinitionManager.AlterPartDefinition("TagsPart", builder => builder
.WithDescription("Allows to describe your content using non-hierarchical keywords."));
return 2;
}
}
}