You are here

function uc_stock_help in Ubercart 8.4

Same name and namespace in other branches
  1. 5 uc_stock/uc_stock.module \uc_stock_help()
  2. 6.2 uc_stock/uc_stock.module \uc_stock_help()
  3. 7.3 uc_stock/uc_stock.module \uc_stock_help()

Implements hook_help().

File

uc_stock/uc_stock.module, line 25
Allow ubercart products to have stock levels associated with their SKU.

Code

function uc_stock_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'uc_stock.edit':
      return '<p>' . t('To keep track of stock for a particular product SKU, make sure it is marked as active and enter a stock value. When the stock level drops below the threshold value, you can be notified based on your <a href=":url">stock settings</a>.', [
        ':url' => Url::fromRoute('uc_stock.settings')
          ->toString(),
      ]) . '</p>';
    case 'admin/store/reports/stock':
    case 'admin/store/reports/stock/threshold':
      return '<p>' . t('This is the list of product SKUs that are currently active. Stock levels below their threshold have highlighted rows. Toggle the checkbox below to alter which stock levels are shown.') . '</p>';
  }
}