You are here

function uc_store_help in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_store/uc_store.module \uc_store_help()
  2. 5 uc_store/uc_store.module \uc_store_help()
  3. 6.2 uc_store/uc_store.module \uc_store_help()

Implements hook_help().

File

uc_store/uc_store.module, line 595
Contains global Ubercart functions and store administration functionality.

Code

function uc_store_help($path, $arg) {
  switch ($path) {
    case 'admin/help#uc_store':
      $output = '<h3>' . t('Ubercart') . '</h3>';
      $output .= '<p>' . t('Use the following links to find documentation and support:') . '</p>';
      $output .= '<ul>';
      $output .= '<li>' . l(t("Ubercart User's Guide"), 'http://www.ubercart.org/docs/user') . '</li>';
      $output .= '<li>' . l(t('Support Forums'), 'http://www.ubercart.org/forum') . '</li>';
      $output .= '</ul>';
      return $output;
    case 'admin/store/reports':
      $output = '<p>' . t('Various reports generated by Ubercart modules can be found here. Click the links below to view the reports.') . '</p>';
      if (!module_exists('uc_reports')) {
        $output .= '<p>' . t('To view core Ubercart statistics enable the <strong>Reports</strong> module on the <a href="!url">module administration page</a>.', array(
          '!url' => url('admin/modules', array(
            'fragment' => 'edit-modules-ubercart-core-optional',
          )),
        )) . '</p>';
      }
      return $output;
  }
}