function notifications_content_action_info in Notifications 7
Implements hook_action_info().
These actions are a bit tricky because they are not unconditional. We check node status before.
File
- notifications_content/
notifications_content.module, line 433 - Subscriptions to content events
Code
function notifications_content_action_info() {
return array(
'notifications_content_node_post_action' => array(
'type' => 'notifications',
'label' => t('Send notifications for new content (if published)'),
'configurable' => FALSE,
'behavior' => array(
'sends_notification',
),
'triggers' => array(
'node_publish',
'node_insert',
'node_update',
),
),
'notifications_content_node_update_action' => array(
'type' => 'notifications',
'label' => t('Send notifications for updated content (if published)'),
'configurable' => FALSE,
'behavior' => array(
'sends_notification',
),
'triggers' => array(
'node_update',
),
),
'notifications_content_comment_action' => array(
'type' => 'notifications',
'label' => t('Send notifications for comment (if published)'),
'configurable' => FALSE,
'behavior' => array(
'sends_notification',
),
'triggers' => array(
'comment_insert',
'comment_update',
),
),
);
}