Skip to content

Instantly share code, notes, and snippets.

@sameronline
Created October 25, 2011 15:34
Show Gist options
  • Save sameronline/1313152 to your computer and use it in GitHub Desktop.
Save sameronline/1313152 to your computer and use it in GitHub Desktop.
Sign out to Home Page - Rule
1. copy the row content of rule.php file to that page..
2. paste it at: /admin/rules/ie/import
that's it!...
array (
'rules' =>
array (
'rules_user_logout' =>
array (
'#type' => 'rule',
'#set' => 'event_user_logout',
'#label' => 'user_logout',
'#active' => 1,
'#weight' => '0',
'#categories' =>
array (
),
'#status' => 'custom',
'#conditions' =>
array (
),
'#actions' =>
array (
0 =>
array (
'#weight' => 0,
'#info' =>
array (
'label' => 'Page redirect',
'module' => 'System',
'eval input' =>
array (
0 => 'path',
1 => 'query',
2 => 'fragment',
),
),
'#name' => 'rules_action_drupal_goto',
'#settings' =>
array (
'path' => '',
'query' => '',
'fragment' => '',
'force' => 1,
'immediate' => 0,
'#eval input' =>
array (
'token_rules_input_evaluator' =>
array (
'path' =>
array (
0 => ':global',
),
'query' =>
array (
0 => ':global',
),
'fragment' =>
array (
0 => ':global',
),
),
),
),
'#type' => 'action',
),
),
'#version' => 6003,
),
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment