You are here

function print_mail_rules_action_info in Printer, email and PDF versions 7.2

Same name and namespace in other branches
  1. 6 print_mail/print_mail.module \print_mail_rules_action_info()
  2. 7 print_mail/print_mail.module \print_mail_rules_action_info()

Implements hook_rules_action_info().

File

print_mail/print_mail.module, line 388
Displays Printer-friendly versions of Drupal pages.

Code

function print_mail_rules_action_info() {
  return array(
    'print_mail_action_submit' => array(
      'label' => t('Send node as HTML formatted email'),
      'group' => t('Send by email'),
      'parameter' => array(
        'from' => array(
          'type' => 'text',
          'label' => t('From email adress'),
        ),
        'from_name' => array(
          'type' => 'text',
          'label' => t('From name'),
        ),
        'to' => array(
          'type' => 'text',
          'label' => t('Send email to'),
        ),
        'subject' => array(
          'type' => 'text',
          'label' => t('Subject'),
        ),
        'message' => array(
          'type' => 'text',
          'label' => t('Message'),
          'description' => t('The message that should be displayed (optional).'),
          'optional' => TRUE,
        ),
        'node' => array(
          'type' => 'node',
          'label' => t('Content'),
        ),
      ),
    ),
  );
}