You are here

commerce_price_table.module in Commerce Price Table 8

Same filename and directory in other branches
  1. 7 commerce_price_table.module

File

commerce_price_table.module
View source
<?php

/**
 * @file
 * Contains commerce_price_table.module
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function commerce_price_table_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.commerce_price_table':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('This is a contributed module for Drupal Commerce that allows you to use a secondary price field to supply an alternate price for a product based on the quantity of that product on the line item. ') . '</p>';
      $output .= '<p>' . t('It also provides a field formatter to display the price/quantity values as a table. ') . '</p>';
      return $output;
  }
}

Functions

Namesort descending Description
commerce_price_table_help Implements hook_help().