You are here

function sharethis_help in ShareThis 7

Same name and namespace in other branches
  1. 8.2 sharethis.module \sharethis_help()
  2. 5 sharethis.module \sharethis_help()
  3. 6.2 sharethis.module \sharethis_help()
  4. 6 sharethis.module \sharethis_help()
  5. 7.2 sharethis.module \sharethis_help()

Implements hook_help.

Displays help and module information.

Parameters

path : Which path of the site we're using to display help

arg : Array that holds the current path as returned from arg() function

File

./sharethis.module, line 17
A module that adds one of the ShareThis widget to your website.

Code

function sharethis_help($path, $arg) {
  global $base_url;
  switch ($path) {
    case "admin/help#sharethis":
      $return_value = "<p>" . t("This plugin places the ShareThis widget on each node.") . '</p>';
      $return_value .= "<p>" . t("You can also enable the included block module, to place it anywhere on your page.  The main differences are:") . '</p>';
      $return_value .= "<ul><li>" . t("The Block pulls the URL from the current page and current Drupal title, the node version pulls it from the node title and url.") . '</li>';
      $return_value .= "<li>" . t("The block can be placed anywhere on a page, the node is limited to where nodes normally go") . '</li>';
      $return_value .= "<li>" . t("The block module is more likely to be compatible with other plugins that use blocks rather than nodes. (Panels works nicely with the block)") . '</li></ul>';
      return $return_value . "<p>" . t('For various configuration options please got to') . ' <a href="' . $base_url . '/admin/config/sharethis">The Settings Page</a></p><p>' . t('For more information, please visit') . ' <a href="http://help.sharethis.com/integration/drupal">help.sharethis.com</a></p><br />';
      break;
  }
}