You are here

function heartbeat_rules_rules_action_info_alter in Heartbeat 7

Implements hook_rules_action_info().

File

modules/heartbeat_og/heartbeat_og.rules.inc, line 17
Includes any rules integration provided by heartbeat OG.

Code

function heartbeat_rules_rules_action_info_alter(&$actions) {
  ctools_include('export');
  foreach (ctools_export_crud_load_all('heartbeat_messages', TRUE) as $template) {
    $actions['heartbeat_activity_' . $template->message_id]['parameter']['in_group'] = array(
      'type' => 'boolean',
      'label' => t('Add the "In-Group" tag to track OG activity'),
      'optional' => TRUE,
    );
  }
}