array ( 'rules' => array ( 'rules_4' => array ( '#type' => 'rule', '#set' => 'event_comment_publish', '#label' => 'Heartbeat: When a user adds a comment', '#active' => 1, '#weight' => '0', '#categories' => array ( 0 => 'heartbeat', ), '#status' => 'custom', '#conditions' => array ( ), '#actions' => array ( 0 => array ( '#weight' => 0, '#type' => 'action', '#settings' => array ( 'uid_param' => '[comment_author:uid]', 'uid_target_param' => '[node_author:uid]', 'nid_param' => '[node:nid]', 'nid_target_param' => '0', 'message_id_param' => 'heartbeat_add_comment', 'variables_param' => '@username=|=[comment_author:user-name-url]-|-@title=|=[node:title-link]-|-@comment=|=[comment:comment-body-raw]-|-', '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'uid_param' => array ( 0 => 'comment_author', ), 'uid_target_param' => array ( 0 => 'node_author', ), 'nid_param' => array ( 0 => 'node', ), 'variables_param' => array ( 0 => 'comment', 1 => 'comment_author', 2 => 'node', ), ), ), ), '#name' => 'heartbeat_rules_default_action', '#info' => array ( 'label' => 'Logs user activity for single users', 'eval input' => array ( 0 => 'uid_param', 1 => 'uid_target_param', 2 => 'nid_param', 3 => 'nid_target_param', 4 => 'message_id_param', 5 => 'variables_param', ), 'module' => 'heartbeat', ), ), ), '#version' => 6003, ), 'rules_5' => array ( '#type' => 'rule', '#set' => 'event_facebook_status_update', '#label' => 'Submit Facebook-style Status', '#active' => 1, '#weight' => '0', '#categories' => array ( 0 => 'facebook_status', ), '#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' => '6', 'type' => 'rules', 'message' => 'name); ?> submitted the status .', 'link' => '/user/uid; ?>', '#eval input' => array ( 'rules_input_evaluator_php' => array ( 'message' => array ( 0 => 'account', 1 => 'new_status', ), 'link' => array ( 0 => 'account', ), ), ), ), '#type' => 'action', ), ), '#version' => 6003, ), 'heartbeat_custom_rules_1' => array ( '#type' => 'rule', '#set' => 'event_node_insert', '#label' => 'When article is posted in a group', '#active' => 1, '#weight' => '0', '#categories' => array ( 0 => 'heartbeat', 1 => 'og_activity', ), '#status' => 'default', '#conditions' => array ( 0 => array ( '#weight' => 0, '#info' => array ( 'label' => 'Created content is published', 'arguments' => array ( 'node' => array ( 'type' => 'node', 'label' => 'Content', ), ), 'module' => 'Node', ), '#name' => 'rules_condition_content_is_published', '#settings' => array ( '#argument map' => array ( 'node' => 'node', ), ), '#type' => 'condition', ), 1 => array ( '#type' => 'condition', '#settings' => array ( '#argument map' => array ( 'group' => 'node', ), ), '#name' => 'og_rules_condition_content_is_group_post', '#info' => array ( 'label' => 'Content is a group post', 'arguments' => array ( 'group' => array ( 'type' => 'node', 'label' => 'Group post', ), ), 'module' => 'Organic groups', ), '#weight' => 0, ), ), '#actions' => array ( 0 => array ( '#weight' => 0, '#type' => 'action', '#settings' => array ( 'uid_param' => '[author:uid]', 'uid_target_param' => '0', 'nid_param' => '[node:nid]', 'nid_target_param' => '[node:og-id]', 'message_id_param' => 'og_add_group_content', 'variables_param' => '@user=|=[author:user-name-url]-|-@article=|=[node:title-link]-|-@group=|=[node:ogname-title-link]-|-', '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'uid_param' => array ( 0 => 'author', ), 'nid_param' => array ( 0 => 'node', ), 'nid_target_param' => array ( 0 => 'node', ), 'variables_param' => array ( 0 => 'node', 1 => 'author', ), ), ), ), '#name' => 'heartbeat_rules_default_action', '#info' => array ( 'label' => 'Logs user activity when group post is created', 'label callback' => false, 'eval input' => array ( 0 => 'uid_param', 1 => 'uid_target_param', 2 => 'nid_param', 3 => 'nid_target_param', 4 => 'message_id_param', 5 => 'variables_param', ), 'module' => 'heartbeat', ), ), ), '#version' => 6003, ), 'heartbeat_custom_rules_2' => array ( '#type' => 'rule', '#set' => 'event_node_update', '#label' => 'When a group article is updated', '#active' => 1, '#weight' => '0', '#categories' => array ( 0 => 'heartbeat', 1 => 'og_activity', ), '#status' => 'default', '#conditions' => array ( 0 => array ( '#type' => 'condition', '#settings' => array ( '#argument map' => array ( 'group' => 'node', ), ), '#name' => 'og_rules_condition_content_is_group_post', '#info' => array ( 'label' => 'Content is a group post', 'arguments' => array ( 'group' => array ( 'type' => 'node', 'label' => 'Group post', ), ), 'module' => 'Organic groups', ), '#weight' => 0, ), 1 => array ( '#weight' => 0, '#info' => array ( 'label' => 'Updated content is published', 'arguments' => array ( 'node' => array ( 'type' => 'node', 'label' => 'Content', ), ), 'module' => 'Node', ), '#name' => 'rules_condition_content_is_published', '#settings' => array ( '#argument map' => array ( 'node' => 'node', ), ), '#type' => 'condition', ), ), '#actions' => array ( 0 => array ( '#weight' => 0, '#type' => 'action', '#settings' => array ( 'uid_param' => '[author:uid]', 'uid_target_param' => '0', 'nid_param' => '[node:nid]', 'nid_target_param' => '[node:og-id]', 'message_id_param' => 'og_edit_group_content', 'variables_param' => '@user=|=[author:user-name-url]-|-@article=|=[node:title-link]-|-@group=|=[node:ogname-title-link]-|-', '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'uid_param' => array ( 0 => 'author', ), 'nid_param' => array ( 0 => 'node', ), 'nid_target_param' => array ( 0 => 'node', ), 'variables_param' => array ( 0 => 'node', 1 => 'author', ), ), ), ), '#name' => 'heartbeat_rules_default_action', '#info' => array ( 'label' => 'Logs activity when a group post is updated', 'label callback' => false, 'eval input' => array ( 0 => 'uid_param', 1 => 'uid_target_param', 2 => 'nid_param', 3 => 'nid_target_param', 4 => 'message_id_param', 5 => 'variables_param', ), 'module' => 'heartbeat', ), ), ), '#version' => 6003, ), 'heartbeat_custom_rules_4' => array ( '#type' => 'rule', '#set' => 'event_node_insert', '#label' => 'When article is created', '#active' => 1, '#weight' => '0', '#categories' => array ( 0 => 'heartbeat', ), '#status' => 'default', '#conditions' => array ( 0 => array ( '#weight' => 0, '#info' => array ( 'label' => 'Created content is published', 'arguments' => array ( 'node' => array ( 'type' => 'node', 'label' => 'Content', ), ), 'module' => 'Node', ), '#name' => 'rules_condition_content_is_published', '#settings' => array ( '#argument map' => array ( 'node' => 'node', ), ), '#type' => 'condition', ), 1 => array ( '#type' => 'condition', '#settings' => array ( 'type' => array ( 'article' => 'article', ), '#argument map' => array ( 'node' => 'node', ), ), '#name' => 'rules_condition_content_is_type', '#info' => array ( 'label' => 'Content has type article', 'label callback' => false, 'arguments' => array ( 'node' => array ( 'type' => 'node', 'label' => 'Content', ), ), 'module' => 'Node', ), '#weight' => 0, ), ), '#actions' => array ( 0 => array ( '#weight' => 0, '#type' => 'action', '#settings' => array ( 'uid_param' => '[author:uid]', 'uid_target_param' => '0', 'nid_param' => '[node:nid]', 'nid_target_param' => '0', 'message_id_param' => 'og_add_article_content', 'variables_param' => '@user=|=[author:user-name-url]-|-@article=|=[node:title-link]-|-', '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'uid_param' => array ( 0 => 'author', ), 'nid_param' => array ( 0 => 'node', ), 'nid_target_param' => array ( 0 => 'node', ), 'variables_param' => array ( 0 => 'node', 1 => 'author', ), ), ), ), '#name' => 'heartbeat_rules_default_action', '#info' => array ( 'label' => 'Logs user activity when article is created', 'label callback' => false, 'eval input' => array ( 0 => 'uid_param', 1 => 'uid_target_param', 2 => 'nid_param', 3 => 'nid_target_param', 4 => 'message_id_param', 5 => 'variables_param', ), 'module' => 'heartbeat', ), ), ), '#version' => 6003, ), 'hrule_add_page' => array ( '#type' => 'rule', '#set' => 'event_node_insert', '#label' => 'Heartbeat: when user adds a page, log user activity', '#active' => 1, '#weight' => '0', '#categories' => array ( 0 => 'heartbeat', ), '#status' => 'default', '#conditions' => array ( 0 => array ( '#type' => 'condition', '#settings' => array ( '#argument map' => array ( 'node' => 'node', ), ), '#name' => 'rules_condition_content_is_published', '#info' => array ( 'label' => 'page is published', 'label callback' => false, 'arguments' => array ( 'node' => array ( 'type' => 'node', 'label' => 'Content', ), ), 'module' => 'Node', ), '#weight' => 0, ), 1 => array ( '#weight' => 0, '#info' => array ( 'label' => 'Content has type page', 'label callback' => false, 'arguments' => array ( 'node' => array ( 'type' => 'node', 'label' => 'Content', ), ), 'module' => 'Node', ), '#name' => 'rules_condition_content_is_type', '#settings' => array ( 'type' => array ( 'page' => 'page', ), '#argument map' => array ( 'node' => 'node', ), ), '#type' => 'condition', ), ), '#actions' => array ( 0 => array ( '#weight' => 0, '#type' => 'action', '#settings' => array ( 'uid_param' => '[author:uid]', 'uid_target_param' => '0', 'nid_param' => '[node:nid]', 'nid_target_param' => '', 'message_id_param' => 'heartbeat_add_node', 'variables_param' => '@username=|=[author:user-name-url]-|-@node_type=|=[node:type]-|-@node_title=|=[node:title-link]-|-@types=|=pages-|-', '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'uid_param' => array ( 0 => 'author', ), 'nid_param' => array ( 0 => 'node', ), 'variables_param' => array ( 0 => 'node', 1 => 'author', ), ), ), ), '#name' => 'heartbeat_rules_default_action', '#info' => array ( 'label' => 'Logs activity for single users adding a page', 'label callback' => false, 'eval input' => array ( 0 => 'uid_param', 1 => 'uid_target_param', 2 => 'nid_param', 3 => 'nid_target_param', 4 => 'message_id_param', 5 => 'variables_param', ), 'module' => 'heartbeat', ), ), ), '#version' => 6003, ), 'hrules_add_comment' => array ( '#type' => 'rule', '#set' => 'event_comment_publish', '#label' => 'Heartbeat: When a user adds a comment', '#active' => 0, '#weight' => '0', '#categories' => array ( 0 => 'heartbeat', ), '#status' => 'default', '#conditions' => array ( ), '#actions' => array ( 0 => array ( '#weight' => 0, '#info' => array ( 'label' => 'Logs user activity for single users', 'eval input' => array ( 0 => 'uid_param', 1 => 'uid_target_param', 2 => 'nid_param', 3 => 'nid_target_param', 4 => 'message_id_param', 5 => 'variables_param', ), 'module' => 'heartbeat', ), '#name' => 'heartbeat_rules_default_action', '#settings' => array ( 'uid_param' => '[comment_author:uid]', 'uid_target_param' => '[node_author:uid]', 'nid_param' => '[node:nid]', 'nid_target_param' => '0', 'message_id_param' => 'heartbeat_add_comment', 'variables_param' => '@username=|=[comment_author:user-name-url]-|-@title=|=[node:title-link]-|-@comment=|=[comment:comment-body-raw]-|-', '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'uid_param' => array ( 0 => 'comment_author', ), 'uid_target_param' => array ( 0 => 'node_author', ), 'nid_param' => array ( 0 => 'node', ), 'variables_param' => array ( 0 => 'comment', 1 => 'comment_author', 2 => 'node', ), ), ), ), '#type' => 'action', ), ), '#version' => 6003, ), 'facebook_status_rules_update' => array ( '#type' => 'rule', '#set' => 'event_facebook_status_update', '#label' => 'Submit Facebook-style Status', '#active' => 0, '#weight' => '0', '#categories' => array ( 0 => 'facebook_status', ), '#status' => 'default', '#conditions' => array ( ), '#actions' => array ( 0 => array ( '#type' => 'action', '#settings' => array ( 'severity' => '6', 'type' => 'rules', 'message' => 'name); ?> submitted the status .', 'link' => '/user/uid; ?>', '#eval input' => array ( 'rules_input_evaluator_php' => array ( 'message' => array ( 0 => 'account', 1 => 'new_status', ), 'link' => array ( 0 => 'account', ), ), ), ), '#name' => 'rules_action_watchdog', '#info' => array ( 'label' => 'Log to watchdog', 'module' => 'System', 'eval input' => array ( 0 => 'type', 1 => 'message', 2 => 'link', ), ), '#weight' => 0, ), ), '#version' => 6003, ), 'facebook_status_rules_delete' => array ( '#type' => 'rule', '#set' => 'event_facebook_status_delete', '#label' => 'Delete Facebook-style Status', '#active' => 1, '#weight' => '0', '#categories' => array ( 0 => 'facebook_status', ), '#status' => 'default', '#conditions' => array ( ), '#actions' => array ( 0 => array ( '#type' => 'action', '#settings' => array ( 'message' => 'Status deleted.', 'error' => 0, ), '#name' => 'rules_action_drupal_message', '#info' => array ( 'label' => 'Show a configurable message on the site', 'module' => 'System', 'eval input' => array ( 0 => 'message', ), ), '#weight' => 0, ), ), '#version' => 6003, ), ), )