array ( 'rules' => array ( 'rules_test_comment' => array ( '#type' => 'rule', '#set' => 'event_fbss_comments_save', '#label' => 'test comment', '#active' => 1, '#weight' => '0', '#categories' => array ( ), '#status' => 'custom', '#conditions' => array ( ), '#actions' => array ( 0 => array ( '#type' => 'action', '#settings' => array ( 'sid' => '[comment:comment-status-id]', '#argument map' => array ( 'status_loaded' => 'status_loaded', ), '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'sid' => array ( 0 => 'comment', ), ), ), ), '#name' => 'fbss_rules_load_action', '#info' => array ( 'label' => 'Load a status', 'new variables' => array ( 'status_loaded' => array ( 'type' => 'facebook_status', 'label' => 'Loaded status', ), ), 'module' => 'Facebook-style Statuses', 'eval input' => array ( 0 => 'sid', ), ), '#weight' => -10, ), 2 => array ( '#weight' => 0, '#type' => 'action', '#settings' => array ( 'code' => 'sender); $comment_creator = user_load($comment->uid); $to = $status_creator->mail; $comment_author = $comment_creator->name; $recipient = $status_creator->name; $settings = array(); $settings[\'to\'] = $to; $settings[\'subject\'] = "You got new message from $comment_author"; $settings[\'message\'] = "Hello $recipient, $comment_author commented your status"; rules_action_mail($settings); ?>', 'vars' => array ( 0 => 'status_loaded', 1 => 'comment', ), '#eval input' => array ( 'rules_input_evaluator_php' => array ( 'code' => array ( 0 => 'status_loaded', 1 => 'comment', ), ), ), ), '#name' => 'rules_action_custom_php', '#info' => array ( 'label' => 'Execute custom PHP code', 'module' => 'PHP', 'eval input' => array ( 0 => 'code', ), ), ), ), '#version' => 6003, ), ), )