You are here

function commerce_recurring_entity_property_info_alter in Commerce Recurring Framework 7.2

Implements hook_entity_property_info_alter() on top of the Recurring module.

File

./commerce_recurring.info.inc, line 88
Provides metadata for the commerce recurring entity.

Code

function commerce_recurring_entity_property_info_alter(&$info) {
  if (isset($info['commerce_recurring']['bundles'])) {
    $properties = array();
    foreach ($info['commerce_recurring']['bundles'] as $bundle => $bundle_info) {
      $bundle_info += array(
        'properties' => array(),
      );
      $properties += $bundle_info['properties'];
    }
    $info['commerce_recurring']['properties']['commerce_recurring_ref_product'] = $properties['commerce_recurring_ref_product'];
    $info['commerce_recurring']['properties']['commerce_recurring_order'] = $properties['commerce_recurring_order'];
  }
}