function picture_help

Implements hook_help().

File

drupal/core/modules/picture/picture.module, line 14
Picture display formatter for image fields.

Code

function picture_help($path, $arg) {
  $output = '';
  switch ($path) {
    case 'admin/help#picture':
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Picture module provides an image formatter and breakpoint mappings to output responsive images using the HTML5 picture tag.') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Mapping image styles to breakpoints') . '</dt>';
      $output .= '<dd>' . t('To use responsive images, you need to define what size the images should be depending on the breakpoints. The Picture module allows you to define which image style should be used for each breakpoint on the <a href="@link">picture mappings administrative page</a>.', array(
        '@link' => url('admin/config/media/picturemapping'),
      )) . '</dd>';
      $output .= '<dt>' . t('Formatting an Image field') . '</dt>';
      $output .= '<dd>' . t('Images in Image fields can be formatted using the Picture formatter, to make them responsive. They will be automatically resized depending on breakpoints.') . '</dd>';
      $output .= '</dl>';
      break;
    case 'admin/config/media/picturemapping':
      $output .= '<p>' . t('A picture mapping associates an image style with each breakpoint defined by your theme.') . '</p>';
      break;
  }
  return $output;
}