function message_notify_rules_action_info in Message Notify 7
Same name and namespace in other branches
- 7.2 message_notify.rules.inc \message_notify_rules_action_info()
Implements hook_rules_action_info().
File
- ./
message_notify.rules.inc, line 14 - Rules integration for the Message notify module.
Code
function message_notify_rules_action_info() {
$items = array();
$items['message_notify_process'] = array(
'label' => t('Send Message with Message notify'),
'group' => t('Message notify'),
'parameter' => array(
'message' => array(
'type' => 'message',
'label' => t('Message'),
'description' => t('The message to be processed and sent using Message notify.'),
),
'save_on_fail' => array(
'type' => 'boolean',
'label' => t('Save on fail'),
'description' => t('Save message if sending failed.'),
'default value' => TRUE,
'optional' => TRUE,
'restriction' => 'input',
),
'save_on_success' => array(
'type' => 'boolean',
'label' => t('Save on success'),
'description' => t('Save message if sending successed.'),
'default value' => TRUE,
'optional' => TRUE,
'restriction' => 'input',
),
'rendered_subject_field' => array(
'type' => 'token',
'label' => t('Rendered subject field'),
'description' => t('The field to save the rendered subject.'),
'default value' => FALSE,
'optional' => TRUE,
'options list' => 'message_notify_field_text_list',
),
'rendered_body_field' => array(
'type' => 'token',
'label' => t('Body subject field'),
'description' => t('The field to save the rendered body.'),
'default value' => FALSE,
'optional' => TRUE,
'options list' => 'message_notify_field_text_list',
),
),
'base' => 'message_notify_rules_process',
);
return $items;
}