You are here

function ffc_rules_event_info in Field formatter conditions 7

Implements hook_rules_event_info().

File

./ffc.rules.inc, line 29
Rules integration for Field formatter conditions.

Code

function ffc_rules_event_info() {
  $base = array(
    'variables' => array(),
  );
  $entity_info = entity_get_info();
  foreach ($entity_info as $entity_type => $info) {
    $base['variables'][$entity_type] = array(
      'type' => $entity_type,
      'label' => $info['label'],
    );
  }
  return array(
    'field_is_rendered' => array(
      'label' => t('A field is rendered'),
      'group' => t('Field formatter conditions'),
    ) + $base,
  );
}