mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +08:00
Enabling Orchard.Rules extensions by default
--HG-- branch : 1.x
This commit is contained in:
@@ -11,7 +11,6 @@ namespace Orchard.Core.Contents.Handlers {
|
|||||||
void TriggerEvent(string category, string type, Func<Dictionary<string, object>> tokensContext);
|
void TriggerEvent(string category, string type, Func<Dictionary<string, object>> tokensContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
[OrchardFeature("Contents.Rules")]
|
|
||||||
public class RulePartHandler : ContentHandler {
|
public class RulePartHandler : ContentHandler {
|
||||||
public RulePartHandler(IRulesManager rulesManager) {
|
public RulePartHandler(IRulesManager rulesManager) {
|
||||||
|
|
||||||
|
|||||||
@@ -10,11 +10,6 @@ Features:
|
|||||||
Name: Contents
|
Name: Contents
|
||||||
Description: Default custom content type definition, creation and management.
|
Description: Default custom content type definition, creation and management.
|
||||||
Category: Core
|
Category: Core
|
||||||
Contents.Rules:
|
|
||||||
Name: Contents Rules
|
|
||||||
Description: Rules for the Contents modules
|
|
||||||
Category: Rules
|
|
||||||
Dependencies: Orchard.Rules, Contents
|
|
||||||
Contents.ControlWrapper:
|
Contents.ControlWrapper:
|
||||||
Name: Content Control Wrapper
|
Name: Content Control Wrapper
|
||||||
Description: Add an Edit button on the front-end for authenticated users
|
Description: Add an Edit button on the front-end for authenticated users
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
using Orchard.Environment.Extensions;
|
|
||||||
using Orchard.Events;
|
using Orchard.Events;
|
||||||
using Orchard.Localization;
|
using Orchard.Localization;
|
||||||
|
|
||||||
@@ -10,7 +9,6 @@ namespace Orchard.Core.Contents.Rules {
|
|||||||
void Describe(dynamic describe);
|
void Describe(dynamic describe);
|
||||||
}
|
}
|
||||||
|
|
||||||
[OrchardFeature("Contents.Rules")]
|
|
||||||
public class ContentEvents : IEventProvider {
|
public class ContentEvents : IEventProvider {
|
||||||
public ContentEvents() {
|
public ContentEvents() {
|
||||||
T = NullLocalizer.Instance;
|
T = NullLocalizer.Instance;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
using System.Web.Mvc;
|
using System.Web.Mvc;
|
||||||
using Orchard.ContentManagement.MetaData;
|
using Orchard.ContentManagement.MetaData;
|
||||||
using Orchard.DisplayManagement;
|
using Orchard.DisplayManagement;
|
||||||
using Orchard.Environment.Extensions;
|
|
||||||
using Orchard.Events;
|
using Orchard.Events;
|
||||||
using Orchard.Localization;
|
using Orchard.Localization;
|
||||||
|
|
||||||
@@ -11,7 +10,6 @@ namespace Orchard.Core.Contents.Rules {
|
|||||||
void Describe(dynamic context);
|
void Describe(dynamic context);
|
||||||
}
|
}
|
||||||
|
|
||||||
[OrchardFeature("Contents.Rules")]
|
|
||||||
public class ContentForms : IFormProvider {
|
public class ContentForms : IFormProvider {
|
||||||
private readonly IContentDefinitionManager _contentDefinitionManager;
|
private readonly IContentDefinitionManager _contentDefinitionManager;
|
||||||
protected dynamic Shape { get; set; }
|
protected dynamic Shape { get; set; }
|
||||||
|
|||||||
@@ -11,8 +11,3 @@ Features:
|
|||||||
Description: Standard content item comments.
|
Description: Standard content item comments.
|
||||||
Dependencies: Settings
|
Dependencies: Settings
|
||||||
Category: Social
|
Category: Social
|
||||||
Orchard.Comments.Rules:
|
|
||||||
Name: Comments Rules
|
|
||||||
Description: Rules for the Comments modules
|
|
||||||
Category: Rules
|
|
||||||
Dependencies: Orchard.Comments, Orchard.Rules
|
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using Orchard.Comments.Models;
|
using Orchard.Comments.Models;
|
||||||
using Orchard.Environment.Extensions;
|
|
||||||
using Orchard.Events;
|
using Orchard.Events;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
using Orchard.Localization;
|
using Orchard.Localization;
|
||||||
@@ -10,7 +9,6 @@ namespace Orchard.Comments.Rules {
|
|||||||
void Describe(dynamic describe);
|
void Describe(dynamic describe);
|
||||||
}
|
}
|
||||||
|
|
||||||
[OrchardFeature("Orchard.Comments.Rules")]
|
|
||||||
public class CommentsActions : IActionProvider {
|
public class CommentsActions : IActionProvider {
|
||||||
private readonly IContentManager _contentManager;
|
private readonly IContentManager _contentManager;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using Orchard.DisplayManagement;
|
using Orchard.DisplayManagement;
|
||||||
using Orchard.Environment.Extensions;
|
|
||||||
using Orchard.Events;
|
using Orchard.Events;
|
||||||
using Orchard.Localization;
|
using Orchard.Localization;
|
||||||
|
|
||||||
@@ -9,7 +8,6 @@ namespace Orchard.Comments.Rules {
|
|||||||
void Describe(dynamic context);
|
void Describe(dynamic context);
|
||||||
}
|
}
|
||||||
|
|
||||||
[OrchardFeature("Orchard.Comments.Rules")]
|
|
||||||
public class CommentsForms : IFormProvider {
|
public class CommentsForms : IFormProvider {
|
||||||
protected dynamic Shape { get; set; }
|
protected dynamic Shape { get; set; }
|
||||||
public Localizer T { get; set; }
|
public Localizer T { get; set; }
|
||||||
|
|||||||
@@ -11,8 +11,3 @@ Features:
|
|||||||
FeatureDescription: Email Messaging services.
|
FeatureDescription: Email Messaging services.
|
||||||
Category: Messaging
|
Category: Messaging
|
||||||
Dependencies: Orchard.Messaging
|
Dependencies: Orchard.Messaging
|
||||||
Orchard.Email.Rules:
|
|
||||||
Name: Email Rules
|
|
||||||
Description: Rules for the Email modules
|
|
||||||
Category: Rules
|
|
||||||
Dependencies: Orchard.Email, Orchard.Rules
|
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Orchard.Core.Common.Models;
|
using Orchard.Core.Common.Models;
|
||||||
using Orchard.Environment.Extensions;
|
|
||||||
using Orchard.Events;
|
using Orchard.Events;
|
||||||
using Orchard.Messaging.Events;
|
using Orchard.Messaging.Events;
|
||||||
using Orchard.Messaging.Models;
|
using Orchard.Messaging.Models;
|
||||||
@@ -17,7 +16,6 @@ namespace Orchard.Email.Rules {
|
|||||||
void Describe(dynamic describe);
|
void Describe(dynamic describe);
|
||||||
}
|
}
|
||||||
|
|
||||||
[OrchardFeature("Orchard.Email.Rules")]
|
|
||||||
public class MailActions : IActionProvider {
|
public class MailActions : IActionProvider {
|
||||||
private readonly IMessageManager _messageManager;
|
private readonly IMessageManager _messageManager;
|
||||||
private readonly IOrchardServices _orchardServices;
|
private readonly IOrchardServices _orchardServices;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using Orchard.DisplayManagement;
|
using Orchard.DisplayManagement;
|
||||||
using Orchard.Environment.Extensions;
|
|
||||||
using Orchard.Events;
|
using Orchard.Events;
|
||||||
using Orchard.Localization;
|
using Orchard.Localization;
|
||||||
|
|
||||||
@@ -9,7 +8,6 @@ namespace Orchard.Email.Rules {
|
|||||||
void Describe(dynamic context);
|
void Describe(dynamic context);
|
||||||
}
|
}
|
||||||
|
|
||||||
[OrchardFeature("Orchard.Email.Rules")]
|
|
||||||
public class MailForms : IFormProvider {
|
public class MailForms : IFormProvider {
|
||||||
protected dynamic Shape { get; set; }
|
protected dynamic Shape { get; set; }
|
||||||
public Localizer T { get; set; }
|
public Localizer T { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user