function uc_role_help in Ubercart 8.4
Implements hook_help().
File
- uc_role/
uc_role.module, line 27 - Grants roles upon accepted payment of products.
Code
function uc_role_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'uc_role.expiration':
return '<p>' . t('Ubercart grants certain roles to customers when they purchase products with a role assignment feature. These can be permanent or temporary roles. Here you can view and edit when temporary roles are set to expire.') . '</p>';
case 'uc_product.feature_add':
if ($route_match
->getRawParameter('fid') == 'role') {
return '<p>' . t('Add roles through this page and then use the <a href=":url">Rules interface</a> to limit which orders they are applied to. Most important is the order status on which role granting will be triggered.', [
':url' => Url::fromRoute('entity.rules_reaction_rule.collection')
->toString(),
]) . '</p>';
}
break;
}
}