You are here

function cronkeychange_help in Cron key change 7

Same name and namespace in other branches
  1. 8 cronkeychange.module \cronkeychange_help()
  2. 2.x cronkeychange.module \cronkeychange_help()

Implements hook_help().

Displays help and module information.

Parameters

path: Which path of the site we are using to display help

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

File

./cronkeychange.module, line 19
Cron Key Change

Code

function cronkeychange_help($path, $arg) {
  switch ($path) {
    case "admin/help#cronkeychange":
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Cron key change is a module that adds various utility functions for the Drupal cron system. This module helps to generate a new cron key. This might be a useful utility module for anyone who has reason to believe their cron key has been accidentally disclosed. Drush command <strong><em>drush cronkeychange</strong></em> is available to display the newly generated cron key.') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dt>' . t('Configuring Cron key change') . '</dt>';
      $output .= '<dd>' . t('On the Cron page, you can <a href="@cron-keygen#edit-cronkeychange">generate the new cron key</a>', array(
        '@cron-keygen' => url('admin/config/system/cron'),
      )) . '</dd>';

      // Add a link to the Drupal.org project.
      $output .= '<p>';
      $output .= t('Visit the <a href="@project_link">Cron key change project page</a> on Drupal.org for more information.', array(
        '@project_link' => url('https://www.drupal.org/project/cronkeychange'),
      ));
      $output .= '</p>';
      return $output;
      break;
  }
}