You are here

function civicrm_entity_rules_events_variables in CiviCRM Entity 7

Same name and namespace in other branches
  1. 7.2 civicrm_entity.rules.inc \civicrm_entity_rules_events_variables()

Please document this function.

Parameters

$label:

$type:

null $civicrm_entity:

Return value

array

1 call to civicrm_entity_rules_events_variables()
civicrm_entity_rules_event_info in ./civicrm_entity.rules.inc
Implements hook_rules_event_info().

File

./civicrm_entity.rules.inc, line 426
Implement Drupal Rules integration for CiviCRM

Code

function civicrm_entity_rules_events_variables($label, $type, $civicrm_entity = NULL) {
  $vars = array();
  $default = array(
    $type => array(
      'type' => $type,
      'label' => $label,
      'description' => t('CiviCRM Entity - @label', array(
        '@label' => $label,
      )),
    ),
  );
  return $default;
}