|
@@ -68,7 +68,8 @@ function materio_commerce_form_role_delegation_role_assign_form_alter(&$form, &$
|
|
|
|
|
|
$description = t("This role is granted by a license. It cannot be removed manually.<br/>");
|
|
|
}
|
|
|
- foreach ($role_licenses['licenses'] as $license) {
|
|
|
+ $reversed_licenses = array_reverse($role_licenses['licenses']);
|
|
|
+ foreach ($reversed_licenses as $license) {
|
|
|
$license_state = $license->getState()->getValue()['value'];
|
|
|
|
|
|
$product_variation = $license->getPurchasedEntity();
|
|
@@ -94,7 +95,7 @@ function materio_commerce_form_role_delegation_role_assign_form_alter(&$form, &$
|
|
|
)), $order_url);
|
|
|
}
|
|
|
|
|
|
- $description .= t("-- @product: @variation | license state: @license_state | granted: @granted | expires: @expires | @license_link | @order_link<br/>", array(
|
|
|
+ $description .= t("-- @product: @variation | license state: <b>@license_state</b> | granted: @granted | expires: @expires | @license_link | @order_link<br/>", array(
|
|
|
'@product' => $product ? $product->getTitle() : t('no product'),
|
|
|
'@variation' => $product_variation ? $product_variation->getTitle() : t('no variation'),
|
|
|
'@license_state' => $license_state,
|
|
@@ -158,7 +159,8 @@ function materio_commerce_form_user_form_alter(&$form, &$form_state, $form_id) {
|
|
|
|
|
|
$description = t("This role is granted by a license. It cannot be removed manually.<br/>");
|
|
|
}
|
|
|
- foreach ($role_licenses['licenses'] as $license) {
|
|
|
+ $reversed_licenses = array_reverse($role_licenses['licenses']);
|
|
|
+ foreach ($reversed_licenses as $license) {
|
|
|
$license_state = $license->getState()->getValue()['value'];
|
|
|
|
|
|
$product_variation = $license->getPurchasedEntity();
|
|
@@ -184,7 +186,7 @@ function materio_commerce_form_user_form_alter(&$form, &$form_state, $form_id) {
|
|
|
)), $order_url);
|
|
|
}
|
|
|
|
|
|
- $description .= t("-- @product: @variation | license state: @license_state | granted: @granted | expires: @expires | @license_link | @order_link<br/>", array(
|
|
|
+ $description .= t("-- @product: @variation | license state: <b>@license_state</b> | granted: @granted | expires: @expires | @license_link | @order_link<br/>", array(
|
|
|
'@product' => $product ? $product->getTitle() : t('no product'),
|
|
|
'@variation' => $product_variation ? $product_variation->getTitle() : t('no variation'),
|
|
|
'@license_state' => $license_state,
|