The documentation for rules 2 development seems (to me at least) a lot more confusing than version 1. Im trying to get a user contributed module for a new rules action converted over to drupal 7/rules 2. The original post can be found here: http://drupal.org/node/675010#comment-4135238
Here is the actual action info part since it looks like drupal.org is down right now.
function paction_rules_action_info() {
return array(
'paction_mail_node' => array(
'label' => t('Send node as HTML formated email'),
'arguments' => array(
'node' => array('type' => 'node', 'label' => t('Content')),
),
'eval input' => array('to', 'from', 'subject', 'message'),
),
'module' => 'Node',
);
}
My question is, does this need to be completely rewritten for drupal 7 or can some show a quick conversion of the code?