function _commerce_file_get_field_names in Commerce File 7
Return field names controlled by this module
Parameters
$key: Some sort of easy key to use in code.
19 calls to _commerce_file_get_field_names()
- CommerceFileLicenseEntity::get_limits in includes/
commerce_file_license.entity.inc - Aggregated Limits
- CommerceFileLicenseEntity::get_line_item_ids in includes/
commerce_file_license.entity.inc - Line item ids
- CommerceFileLicenseEntity::link_line_item in includes/
commerce_file_license.entity.inc - Add a line item
- CommerceFileLicenseEntity::set_file in includes/
commerce_file_license.entity.inc - Set file field item values
- CommerceFileLicenseEntity::unlink_line_item in includes/
commerce_file_license.entity.inc - Remove a line item
File
- ./
commerce_file.module, line 526 - Provides integration of file licenses with Commerce
Code
function _commerce_file_get_field_names($key = NULL) {
$names =& drupal_static(__FUNCTION__);
if (!isset($names)) {
$names = array(
'license_file' => 'commerce_file_license_file',
'license_line_items' => 'commerce_file_license_line_items',
'line_item_files' => 'commerce_file_line_item_files',
);
}
if (isset($key)) {
return $names[$key];
}
return $names;
}