array ( 'rules' => array ( 'rules_12' => array ( '#type' => 'rule', '#set' => 'event_privatemsg_insert', '#label' => 'Email Notification after a private message is send', '#active' => 1, '#weight' => '0', '#categories' => array ( 0 => 'notification', ), '#status' => 'custom', '#conditions' => array ( ), '#actions' => array ( 1 => array ( '#weight' => -4, '#info' => array ( 'label' => 'Load Recipient of the message.\'s User Settings', 'arguments' => array ( 'user' => array ( 'type' => 'user', 'label' => 'User, whose profile should be loaded', ), ), 'new variables' => array ( 'load_user_settings' => array ( 'label' => 'Load user settings', 'label callback' => false, 'type' => 'node', ), ), 'module' => 'Content Profile', ), '#name' => 'content_profile_action_load', '#settings' => array ( 'type' => 'user_settings', '#argument map' => array ( 'user' => 'recipient', 'profile_node' => 'load_user_settings', ), ), '#type' => 'action', ), 0 => array ( '#type' => 'action', '#settings' => array ( 'from' => '', 'subject' => '[author:user] sent you a new message', 'message' => 'Hi [recipient:user] [author:user] sent you a new private message Visit the following link to view your new private messages: [recipient:site-url]/messages Enjoy your day', '#argument map' => array ( 'user' => 'author', ), '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'message' => array ( 0 => 'author', 1 => 'recipient', ), 'from' => array ( 0 => 'author', ), 'subject' => array ( 0 => 'author', ), ), 'rules_input_evaluator_php' => array ( 'message' => array ( 0 => 'subject', ), ), ), ), '#name' => 'rules_action_mail_to_user', '#info' => array ( 'label' => 'Send a mail to a user', 'arguments' => array ( 'user' => array ( 'type' => 'user', 'label' => 'Recipient', ), ), 'module' => 'System', 'eval input' => array ( 0 => 'subject', 1 => 'message', 2 => 'from', ), ), '#weight' => 0, ), ), ), ), )