Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rules-3456903
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
rules-3456903
Commits
5e02ef68
Commit
5e02ef68
authored
16 years ago
by
Wolfgang Ziegler
Browse files
Options
Downloads
Patches
Plain Diff
added a simple example rule
parent
b981c5ec
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
rules/modules/node.rules_forms.inc
+1
-1
1 addition, 1 deletion
rules/modules/node.rules_forms.inc
rules/modules/user.rules_forms.inc
+1
-1
1 addition, 1 deletion
rules/modules/user.rules_forms.inc
rules/rules.rules_defaults.inc
+79
-2
79 additions, 2 deletions
rules/rules.rules_defaults.inc
with
81 additions
and
4 deletions
rules/modules/node.rules_forms.inc
+
1
−
1
View file @
5e02ef68
<?php
// $Id$
/**
* @file Rules configuration forms for the node module
*/
...
...
This diff is collapsed.
Click to expand it.
rules/modules/user.rules_forms.inc
+
1
−
1
View file @
5e02ef68
<?php
//$Id$
//
$Id$
/**
* @file Rules configuration forms for the user module
*/
...
...
This diff is collapsed.
Click to expand it.
rules/rules.rules_defaults.inc
+
79
−
2
View file @
5e02ef68
...
...
@@ -6,9 +6,86 @@
function
rules_rules_defaults
()
{
$rules
=
array
();
$config
=
array
(
'rules'
=>
array
(
'rules_1'
=>
array
(
'#type'
=>
'rule'
,
'#set'
=>
'event_node_view'
,
'#label'
=>
'Example rule'
,
'#active'
=>
1
,
'#weight'
=>
'0'
,
'#name'
=>
'rules_1'
,
'#conditions'
=>
array
(
0
=>
array
(
'#settings'
=>
array
(
'#argument map'
=>
array
(
'node'
=>
'node'
,
),
'type'
=>
array
(
'page'
=>
'page'
,
),
),
'#info'
=>
array
(
'label'
=>
'Content is Page'
,
'arguments'
=>
array
(
'node'
=>
array
(
'type'
=>
'node'
,
'label'
=>
'Content'
,
),
),
'help'
=>
'Evaluates to TRUE, if the given content has one of the selected content types.'
,
'module'
=>
'Node'
,
),
'#name'
=>
'rules_condition_content_is_type'
,
'#type'
=>
'condition'
,
),
),
'#actions'
=>
array
(
0
=>
array
(
'#type'
=>
'action'
,
'#name'
=>
'rules_action_node_publish'
,
'#info'
=>
array
(
'label'
=>
'Publish content'
,
'label callback'
=>
false
,
'arguments'
=>
array
(
'node'
=>
array
(
'type'
=>
'node'
,
'label'
=>
'Content'
,
),
),
'module'
=>
'Node'
,
),
'#settings'
=>
array
(
'#argument map'
=>
array
(
'node'
=>
'node'
,
),
'published'
=>
1
,
),
),
),
),
),
);
return
array
(
'rules'
=>
$rules
,
return
$config
+
array
(
'rule_sets'
=>
array
(
'rules_set_1'
=>
array
(
'label'
=>
'Rule Set Example working with content'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment