You are here

function uc_roles_help in Ubercart 7.3

Same name and namespace in other branches
  1. 5 uc_roles/uc_roles.module \uc_roles_help()
  2. 6.2 uc_roles/uc_roles.module \uc_roles_help()

Implements hook_help().

File

uc_roles/uc_roles.module, line 16
Grants roles upon accepted payment of products.

Code

function uc_roles_help($path, $arg) {
  if ($path == 'node/%/edit/features/%/%' && $arg[4] == '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.', array(
      '!url' => url('admin/config/workflow/rules/reaction'),
    )) . '</p>';
  }
  switch ($path) {
    case 'admin/people/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>';
  }
}