function message_rules_action_info in Message 6
Implementation of hook_rules_action_info().
File
- includes/
message.rules.inc, line 79 - Rules integration for the Message module.
Code
function message_rules_action_info() {
$info = array();
// Term actions.
$info['message_action_load_message'] = array(
'label' => t('Load a message'),
'new variables' => array(
'message' => array(
'type' => 'message',
'label' => t('Message'),
),
),
'eval input' => array(
'message|message_text',
),
'help' => t('Loading a message will allow you to act on this term, for example you will be create a new message instance.'),
'module' => 'Message',
);
$info['message_action_create_message_instance'] = array(
'label' => t('Create a message instance'),
'arguments' => array(
'message' => array(
'type' => 'message',
'label' => t('Message'),
),
'user' => array(
'type' => 'user',
'label' => t('User'),
),
),
'new variables' => array(
'message_instance' => array(
'type' => 'message_instance',
'label' => t('Message instance'),
),
),
'eval input' => array(
'arguments',
'code',
'entity_type',
'eid',
'extra_identifier',
),
'module' => 'Message',
);
$info['message_action_assign_message_instance_to_realm'] = array(
'label' => t('Assign a message instance to realm'),
'arguments' => array(
'message_instance' => array(
'type' => 'message_instance',
'label' => t('Message instance'),
),
),
'eval input' => array(
'plugin_name',
'realm_id',
),
'module' => 'Message',
);
return $info;
}