You are here

function notifications_tags_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_tags/notifications_tags.module, line 271
Subscriptions to taxonomy terms

Code

function notifications_tags_action_info() {
  return array(
    'notifications_tags_term_create_action' => array(
      'type' => 'notifications',
      'label' => t('Send notifications for new term'),
      'configurable' => FALSE,
      'behavior' => array(
        'sends_notification',
      ),
      'triggers' => array(
        'taxonomy_term_insert',
        'taxonomy_term_update',
      ),
    ),
  );
}