You are here

function statcounter_help in StatCounter 5

Same name and namespace in other branches
  1. 6 statcounter.module \statcounter_help()
  2. 7.2 statcounter.module \statcounter_help()

Implementation of hook_help().

File

./statcounter.module, line 12
Provides an integration with StatCounter which logs user activity.

Code

function statcounter_help($section = "admin/help#statcounter") {
  $output = '';
  switch ($section) {
    case 'admin/help#statcounter':
      $output = t('<p>The StatCounter module provides an integration of StatCounter for Drupal. The
        module allows you to insert tracking code on pages within the specific scope. For more detialed
        instructions please visit the StatCounter settings and read the instructions on that page.</p>
        <p>If you would like to change the location of the code on the page goto
        <a href="' . url('admin/build/block') . '">admin/build/block</a> and change the location of the "StatCounter"
        block.</p>');
      break;
    case 'admin/settings/statcounter':
      $output = t('<p>To setup a StatCounter project with the integration module please visit
        <a href="http://statcounter.com">http://statcounter.com</a> and perform the following setups:</p>
        <ol>
          <li>Login to your account.</li>
          <li>Create the project to be used if you haven\'t already.</li>
          <li>Click on the wrench icon for that project.</li>
          <li>Click "Install Code."</li>
          <li>Setup the code the way you prefer, but on the "Installation Options" screen select
            "No, I want the default install guide" instead of "Yes, I use."</li>
          <li>Copy the code in the textarea and paste it into the textarea below labled code.</li>
          <li>Set the scope.</li>
          <li>Goto the <a href="' . url('admin/build/block') . '">Blocks</a> page and set the StatCounter block to
          region you would like it to display in.</li>
        </ol>');
      break;
  }
  return $output;
}