You are here

function crop_help in Crop API 8

Same name and namespace in other branches
  1. 8.2 crop.module \crop_help()

Implements hook_help().

File

./crop.module, line 33
The Crop API Drupal module.

Code

function crop_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.crop':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t("<a href=':crop'>Crop</a> provides basic API for image cropping. This module won't do much by itself. Users should pick one of UI modules that utilize this API.</a>", [
        ':crop' => 'http://drupal.org/project/crop',
      ]) . '</p>';
      $output .= '<h3>' . t('Configuration') . '</h3>';
      $output .= '<p>' . t('This is API module. In order to crop your images you need a UI module. There are currently two UI modules that use Crop API:') . '</p>';
      $output .= '<ul>';
      $output .= '<li>' . t('<a href=":image_widget_crop">Image widget crop</a>', [
        ':image_widget_crop' => 'https://www.drupal.org/project/image_widget_crop',
      ]) . '</li>';
      $output .= '<li>' . t('<a href=":focal_point">Focal point</a>', [
        ':focal_point' => 'https://www.drupal.org/project/focal_point',
      ]) . '</li>';
      $output .= '</ul>';
      $output .= '<h3>' . t('Technical details') . '</h3>';
      $output .= '<p>' . t('Initial discussion can be found on <a href=":manual">manual crop issue queue</a>.', [
        ':manual' => 'https://www.drupal.org/node/2368945',
      ]) . '</p>';
      return $output;
  }
}