function uc_roles_uc_message in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_roles/uc_roles.module \uc_roles_uc_message()
- 7.3 uc_roles/uc_roles.module \uc_roles_uc_message()
Implementation of hook_uc_message().
File
- uc_roles/
uc_roles.module, line 429 - Grants roles upon accepted payment of products
Code
function uc_roles_uc_message() {
$messages['uc_roles_grant_subject'] = t('[store-name]: [role-name] role granted');
$messages['uc_roles_grant_message'] = t("[order-first-name] [order-last-name], \n\nThanks to your order, [order-link], at [store-name] you now have a new role, [role-name].\n\nThanks again, \n\n[store-name]\n[site-slogan]");
$messages['uc_roles_revoke_subject'] = t('[store-name]: [role-name] role expired');
$messages['uc_roles_revoke_message'] = t("The role, [role-name], you acquired by purchasing a product at our store has expired. Any special access or privileges that came with it are now gone. You can purchase it again by going to [store-link]\n\nThanks again, \n\n[store-name]\n[site-slogan]");
$messages['uc_roles_renew_subject'] = t('[store-name]: [role-name] role renewed');
$messages['uc_roles_renew_message'] = t("[order-first-name] [order-last-name], \n\nThanks to your order, [order-link], at [store-name] you have renewed the role, [role-name]. It is now set to expire on [role-expiration-short].\n\nThanks again, \n\n[store-name]\n[site-slogan]");
$messages['uc_roles_reminder_subject'] = t('[store-name]: [role-name] role expiration notice');
$messages['uc_roles_reminder_message'] = t("This message is to remind you that the role, [role-name], you acquired by making a purchase at our store will expire at [role-expiration-short]. You may visit [store-link] to renew this role before it expires.\n\nThanks again, \n\n[store-name]\n[site-slogan]");
$messages['uc_roles_user_expiration_header'] = t("Expiring roles");
$messages['uc_roles_user_expiration_title'] = t("!role_name");
$messages['uc_roles_user_expiration_message'] = t("This role will expire on !date");
return $messages;
}