function template_preprocess_commerce_product_status in Commerce Core 7
Converts the product status integer to a string before output.
File
- modules/
product/ commerce_product.module, line 1119 - Defines the core Commerce product entity, including the entity itself, the bundle definitions (product types), and various API functions to manage products and interact with them through forms and autocompletes.
Code
function template_preprocess_commerce_product_status(&$variables) {
$variables['status'] = empty($variables['status']) ? t('Disabled') : t('Active');
}