function shoutbox_rules_rules_event_info in Shoutbox 6.2
Implementation of hook_rules_event_info().
File
- shoutbox_rules/
shoutbox_rules.module, line 48
Code
function shoutbox_rules_rules_event_info() {
return array(
'shout_insert' => array(
'label' => t('A shout was posted'),
'module' => 'Shoutbox',
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('The user who posted the shout.'),
),
'shout' => array(
'type' => 'shout',
'label' => t('The shout text that was posted.'),
),
),
),
'shout_edit' => array(
'label' => t('A shout was edited'),
'module' => 'Shoutbox',
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('The user who edited the shout.'),
),
'shout' => array(
'type' => 'shout',
'label' => t('The shout text that was edited.'),
),
),
),
'shout_publish' => array(
'label' => t('A shout was published'),
'module' => 'Shoutbox',
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('The user who published the shout.'),
),
'shout' => array(
'type' => 'shout',
'label' => t('The shout text that was published.'),
),
),
),
'shout_unpublish' => array(
'label' => t('A shout was unpublished'),
'module' => 'Shoutbox',
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('The user who unpublished the shout.'),
),
'shout' => array(
'type' => 'shout',
'label' => t('The shout text that was unpublished.'),
),
),
),
'shout_delete' => array(
'label' => t('A shout was deleted'),
'module' => 'Shoutbox',
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('The user who deleted the shout.'),
),
'shout' => array(
'type' => 'shout',
'label' => t('The shout text that was deleted.'),
),
),
),
);
}