Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.51 KB | None | 0 0
  1. array (
  2.   'rules' =>
  3.   array (
  4.     'rules_backup_alert' =>
  5.     array (
  6.       '#type' => 'rule',
  7.       '#set' => 'event_hosting_site_backup',
  8.       '#label' => 'Backup alert',
  9.       '#active' => 1,
  10.       '#weight' => '0',
  11.       '#categories' =>
  12.       array (
  13.       ),
  14.       '#status' => 'custom',
  15.       '#conditions' =>
  16.       array (
  17.         0 =>
  18.         array (
  19.           '#weight' => 0,
  20.           '#info' =>
  21.           array (
  22.             'label' => 'Task failed to complete',
  23.             'arguments' =>
  24.             array (
  25.               'task' =>
  26.               array (
  27.                 'type' => 'node',
  28.                 'label' => 'Task object',
  29.               ),
  30.             ),
  31.             'module' => 'Hosting',
  32.           ),
  33.           '#name' => 'aegir_rules_condition_task_status_failure',
  34.           '#settings' =>
  35.           array (
  36.             '#argument map' =>
  37.             array (
  38.               'task' => 'task',
  39.             ),
  40.           ),
  41.           '#type' => 'condition',
  42.         ),
  43.       ),
  44.       '#actions' =>
  45.       array (
  46.         0 =>
  47.         array (
  48.           '#type' => 'action',
  49.           '#settings' =>
  50.           array (
  51.             'severity' => '1',
  52.             'type' => 'rules',
  53.             'message' => 'BACKUP FAILED TO COMPLETE',
  54.             'link' => '',
  55.           ),
  56.           '#name' => 'rules_action_watchdog',
  57.           '#info' =>
  58.           array (
  59.             'label' => 'Log to watchdog',
  60.             'module' => 'System',
  61.             'eval input' =>
  62.             array (
  63.               0 => 'type',
  64.               1 => 'message',
  65.               2 => 'link',
  66.             ),
  67.           ),
  68.           '#weight' => 0,
  69.         ),
  70.         1 =>
  71.         array (
  72.           '#weight' => 0,
  73.           '#info' =>
  74.           array (
  75.             'label' => 'Create a user',
  76.             'arguments' =>
  77.             array (
  78.               'username' =>
  79.               array (
  80.                 'type' => 'string',
  81.                 'label' => 'User name',
  82.               ),
  83.               'email' =>
  84.               array (
  85.                 'type' => 'string',
  86.                 'label' => 'User\'s E-mail',
  87.               ),
  88.             ),
  89.             'new variables' =>
  90.             array (
  91.               'user_added' =>
  92.               array (
  93.                 'type' => 'user',
  94.                 'label' => 'New user',
  95.               ),
  96.               'user_added_pw' =>
  97.               array (
  98.                 'type' => 'string',
  99.                 'label' => 'New user\'s password',
  100.               ),
  101.             ),
  102.             'module' => 'User',
  103.           ),
  104.           '#name' => 'rules_action_user_create',
  105.           '#settings' =>
  106.           array (
  107.             'username' => 'test',
  108.             'email' => 'test@test.com',
  109.             '#argument map' =>
  110.             array (
  111.               'user_added' => 'user_added',
  112.               'user_added_pw' => 'user_added_pw',
  113.             ),
  114.           ),
  115.           '#type' => 'action',
  116.         ),
  117.       ),
  118.       '#version' => 6003,
  119.     ),
  120.     'rules_backup_alert_2' =>
  121.     array (
  122.       '#type' => 'rule',
  123.       '#set' => 'event_hosting_site_backup',
  124.       '#label' => 'Backup alert 2',
  125.       '#active' => 1,
  126.       '#weight' => '0',
  127.       '#categories' =>
  128.       array (
  129.       ),
  130.       '#status' => 'custom',
  131.       '#conditions' =>
  132.       array (
  133.         0 =>
  134.         array (
  135.           '#weight' => 0,
  136.           '#type' => 'condition',
  137.           '#settings' =>
  138.           array (
  139.             '#argument map' =>
  140.             array (
  141.               'task' => 'task',
  142.             ),
  143.           ),
  144.           '#name' => 'aegir_rules_condition_task_status_success',
  145.           '#info' =>
  146.           array (
  147.             'label' => 'Task completed successfully',
  148.             'arguments' =>
  149.             array (
  150.               'task' =>
  151.               array (
  152.                 'type' => 'node',
  153.                 'label' => 'Task object',
  154.               ),
  155.             ),
  156.             'module' => 'Hosting',
  157.           ),
  158.         ),
  159.       ),
  160.       '#actions' =>
  161.       array (
  162.         0 =>
  163.         array (
  164.           '#weight' => 0,
  165.           '#info' =>
  166.           array (
  167.             'label' => 'Log to watchdog',
  168.             'module' => 'System',
  169.             'eval input' =>
  170.             array (
  171.               0 => 'type',
  172.               1 => 'message',
  173.               2 => 'link',
  174.             ),
  175.           ),
  176.           '#name' => 'rules_action_watchdog',
  177.           '#settings' =>
  178.           array (
  179.             'severity' => '5',
  180.             'type' => 'rules',
  181.             'message' => 'Testing successful backup',
  182.             'link' => '',
  183.           ),
  184.           '#type' => 'action',
  185.         ),
  186.       ),
  187.       '#version' => 6003,
  188.     ),
  189.     'rules_test_backups_no_condition' =>
  190.     array (
  191.       '#type' => 'rule',
  192.       '#set' => 'event_hosting_site_backup',
  193.       '#label' => 'Test backups no condition',
  194.       '#active' => 1,
  195.       '#weight' => '0',
  196.       '#categories' =>
  197.       array (
  198.       ),
  199.       '#status' => 'custom',
  200.       '#conditions' =>
  201.       array (
  202.       ),
  203.       '#actions' =>
  204.       array (
  205.         0 =>
  206.         array (
  207.           '#weight' => 0,
  208.           '#info' =>
  209.           array (
  210.             'label' => 'Log to watchdog',
  211.             'module' => 'System',
  212.             'eval input' =>
  213.             array (
  214.               0 => 'type',
  215.               1 => 'message',
  216.               2 => 'link',
  217.             ),
  218.           ),
  219.           '#name' => 'rules_action_watchdog',
  220.           '#settings' =>
  221.           array (
  222.             'severity' => '5',
  223.             'type' => 'rules',
  224.             'message' => 'Backup ran',
  225.             'link' => '',
  226.           ),
  227.           '#type' => 'action',
  228.         ),
  229.       ),
  230.       '#version' => 6003,
  231.     ),
  232.     'rules_test_task_execute' =>
  233.     array (
  234.       '#type' => 'rule',
  235.       '#set' => 'event_hosting_default_execute',
  236.       '#label' => 'test_task_execute',
  237.       '#active' => 1,
  238.       '#weight' => '0',
  239.       '#categories' =>
  240.       array (
  241.       ),
  242.       '#status' => 'custom',
  243.       '#conditions' =>
  244.       array (
  245.         0 =>
  246.         array (
  247.           '#weight' => 0,
  248.           '#type' => 'condition',
  249.           '#settings' =>
  250.           array (
  251.             '#argument map' =>
  252.             array (
  253.               'task' => 'task',
  254.             ),
  255.           ),
  256.           '#name' => 'aegir_rules_condition_task_status_failure',
  257.           '#info' =>
  258.           array (
  259.             'label' => 'Task failed to complete',
  260.             'arguments' =>
  261.             array (
  262.               'task' =>
  263.               array (
  264.                 'type' => 'node',
  265.                 'label' => 'Task object',
  266.               ),
  267.             ),
  268.             'module' => 'Hosting',
  269.           ),
  270.         ),
  271.       ),
  272.       '#actions' =>
  273.       array (
  274.         0 =>
  275.         array (
  276.           '#info' =>
  277.           array (
  278.             'label' => 'Log to watchdog',
  279.             'module' => 'System',
  280.             'eval input' =>
  281.             array (
  282.               0 => 'type',
  283.               1 => 'message',
  284.               2 => 'link',
  285.             ),
  286.           ),
  287.           '#name' => 'rules_action_watchdog',
  288.           '#settings' =>
  289.           array (
  290.             'severity' => '5',
  291.             'type' => 'rules',
  292.             'message' => 'test task execute',
  293.             'link' => '',
  294.           ),
  295.           '#type' => 'action',
  296.           '#weight' => 0,
  297.         ),
  298.       ),
  299.       '#version' => 6003,
  300.     ),
  301.   ),
  302. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement