You are here

function _commerce_file_license_data_property_info in Commerce File 7

Extract property info from license info

  • used in field definition for settings property info
2 calls to _commerce_file_license_data_property_info()
commerce_file_entity_property_info_alter in ./commerce_file.info.inc
Implements hook_entity_property_info_alter()
commerce_file_field_data_property_info in includes/commerce_file.field.inc
Defines info for the properties of the Price field data structure.

File

./commerce_file.module, line 400
Provides integration of file licenses with Commerce

Code

function _commerce_file_license_data_property_info() {
  $info = _commerce_file_collate_license_info();
  $property_info = array();
  foreach ($info as $k => $data) {
    if (isset($data['property info'])) {
      $property_info[$k] = $data['property info'];
    }
  }
  return $property_info;
}