function commerce_product_reference_preprocess_entity in Commerce Core 7
Implements hook_preprocess_HOOK().
File
- modules/
product_reference/ commerce_product_reference.module, line 1535 - Defines a field type for referencing products from other entities.
Code
function commerce_product_reference_preprocess_entity(&$variables) {
// @todo Remove this hook implementation when a new release is created for
// Entity API to fix the default $url variable in entity.tpl.php.
// @see http://drupal.org/node/1601162
if (!isset($variables['url'])) {
$variables['url'] = FALSE;
}
}