Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array (
- 'rules' =>
- array (
- 'rules_backup_alert' =>
- array (
- '#type' => 'rule',
- '#set' => 'event_hosting_site_backup',
- '#label' => 'Backup alert',
- '#active' => 1,
- '#weight' => '0',
- '#categories' =>
- array (
- ),
- '#status' => 'custom',
- '#conditions' =>
- array (
- 0 =>
- array (
- '#weight' => 0,
- '#info' =>
- array (
- 'label' => 'Task failed to complete',
- 'arguments' =>
- array (
- 'task' =>
- array (
- 'type' => 'node',
- 'label' => 'Task object',
- ),
- ),
- 'module' => 'Hosting',
- ),
- '#name' => 'aegir_rules_condition_task_status_failure',
- '#settings' =>
- array (
- '#argument map' =>
- array (
- 'task' => 'task',
- ),
- ),
- '#type' => 'condition',
- ),
- ),
- '#actions' =>
- array (
- 0 =>
- array (
- '#type' => 'action',
- '#settings' =>
- array (
- 'severity' => '1',
- 'type' => 'rules',
- 'message' => 'BACKUP FAILED TO COMPLETE',
- 'link' => '',
- ),
- '#name' => 'rules_action_watchdog',
- '#info' =>
- array (
- 'label' => 'Log to watchdog',
- 'module' => 'System',
- 'eval input' =>
- array (
- 0 => 'type',
- 1 => 'message',
- 2 => 'link',
- ),
- ),
- '#weight' => 0,
- ),
- 1 =>
- array (
- '#weight' => 0,
- '#info' =>
- array (
- 'label' => 'Create a user',
- 'arguments' =>
- array (
- 'username' =>
- array (
- 'type' => 'string',
- 'label' => 'User name',
- ),
- 'email' =>
- array (
- 'type' => 'string',
- 'label' => 'User\'s E-mail',
- ),
- ),
- 'new variables' =>
- array (
- 'user_added' =>
- array (
- 'type' => 'user',
- 'label' => 'New user',
- ),
- 'user_added_pw' =>
- array (
- 'type' => 'string',
- 'label' => 'New user\'s password',
- ),
- ),
- 'module' => 'User',
- ),
- '#name' => 'rules_action_user_create',
- '#settings' =>
- array (
- 'username' => 'test',
- 'email' => 'test@test.com',
- '#argument map' =>
- array (
- 'user_added' => 'user_added',
- 'user_added_pw' => 'user_added_pw',
- ),
- ),
- '#type' => 'action',
- ),
- ),
- '#version' => 6003,
- ),
- 'rules_backup_alert_2' =>
- array (
- '#type' => 'rule',
- '#set' => 'event_hosting_site_backup',
- '#label' => 'Backup alert 2',
- '#active' => 1,
- '#weight' => '0',
- '#categories' =>
- array (
- ),
- '#status' => 'custom',
- '#conditions' =>
- array (
- 0 =>
- array (
- '#weight' => 0,
- '#type' => 'condition',
- '#settings' =>
- array (
- '#argument map' =>
- array (
- 'task' => 'task',
- ),
- ),
- '#name' => 'aegir_rules_condition_task_status_success',
- '#info' =>
- array (
- 'label' => 'Task completed successfully',
- 'arguments' =>
- array (
- 'task' =>
- array (
- 'type' => 'node',
- 'label' => 'Task object',
- ),
- ),
- 'module' => 'Hosting',
- ),
- ),
- ),
- '#actions' =>
- array (
- 0 =>
- array (
- '#weight' => 0,
- '#info' =>
- array (
- 'label' => 'Log to watchdog',
- 'module' => 'System',
- 'eval input' =>
- array (
- 0 => 'type',
- 1 => 'message',
- 2 => 'link',
- ),
- ),
- '#name' => 'rules_action_watchdog',
- '#settings' =>
- array (
- 'severity' => '5',
- 'type' => 'rules',
- 'message' => 'Testing successful backup',
- 'link' => '',
- ),
- '#type' => 'action',
- ),
- ),
- '#version' => 6003,
- ),
- 'rules_test_backups_no_condition' =>
- array (
- '#type' => 'rule',
- '#set' => 'event_hosting_site_backup',
- '#label' => 'Test backups no condition',
- '#active' => 1,
- '#weight' => '0',
- '#categories' =>
- array (
- ),
- '#status' => 'custom',
- '#conditions' =>
- array (
- ),
- '#actions' =>
- array (
- 0 =>
- array (
- '#weight' => 0,
- '#info' =>
- array (
- 'label' => 'Log to watchdog',
- 'module' => 'System',
- 'eval input' =>
- array (
- 0 => 'type',
- 1 => 'message',
- 2 => 'link',
- ),
- ),
- '#name' => 'rules_action_watchdog',
- '#settings' =>
- array (
- 'severity' => '5',
- 'type' => 'rules',
- 'message' => 'Backup ran',
- 'link' => '',
- ),
- '#type' => 'action',
- ),
- ),
- '#version' => 6003,
- ),
- 'rules_test_task_execute' =>
- array (
- '#type' => 'rule',
- '#set' => 'event_hosting_default_execute',
- '#label' => 'test_task_execute',
- '#active' => 1,
- '#weight' => '0',
- '#categories' =>
- array (
- ),
- '#status' => 'custom',
- '#conditions' =>
- array (
- 0 =>
- array (
- '#weight' => 0,
- '#type' => 'condition',
- '#settings' =>
- array (
- '#argument map' =>
- array (
- 'task' => 'task',
- ),
- ),
- '#name' => 'aegir_rules_condition_task_status_failure',
- '#info' =>
- array (
- 'label' => 'Task failed to complete',
- 'arguments' =>
- array (
- 'task' =>
- array (
- 'type' => 'node',
- 'label' => 'Task object',
- ),
- ),
- 'module' => 'Hosting',
- ),
- ),
- ),
- '#actions' =>
- array (
- 0 =>
- array (
- '#info' =>
- array (
- 'label' => 'Log to watchdog',
- 'module' => 'System',
- 'eval input' =>
- array (
- 0 => 'type',
- 1 => 'message',
- 2 => 'link',
- ),
- ),
- '#name' => 'rules_action_watchdog',
- '#settings' =>
- array (
- 'severity' => '5',
- 'type' => 'rules',
- 'message' => 'test task execute',
- 'link' => '',
- ),
- '#type' => 'action',
- '#weight' => 0,
- ),
- ),
- '#version' => 6003,
- ),
- ),
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement