You are here

function inline_responsive_images_help in Inline responsive images 8.2

Implements hook_help().

File

./inline_responsive_images.module, line 9

Code

function inline_responsive_images_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.inline_responsive_images':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The <a target="_blank" href="https://www.drupal.org/project/inline_responsive_images">Inline responsive images</a> Inserting an image in the text editor dialog today allows the user to fiddle with image dimensions. It does not even have aspect ratio locking.') . '</p>';
      $output .= '<p>' . t('Its not great for the authoring experience nor for structured content reasons that users are defining the specific dimensions of every single image they insert. It wouldd be much better to allow them to choose from image styles — just like we do for image fields.') . '</p>';
      $output .= '<p>' . t('This module lets users select a responsive style OR a image style to place images in the content.') . '</p>';
      $output .= '<h4>' . t('Configuration') . '</h4>';
      $output .= '<dl>';
      $output .= '<dd>' . t('The module has no menu or modifiable settings.') . '</dd>';
      $output .= '<dd>' . t('Enable the text format filter \'Display responsive images\' or \'Display image styles\' and select the images styles/responsive styles that you want to be available to the user.') . '</dd>';
      $output .= '<dd>' . t('When the module is enabled, create new content. In the editor, click on the image icon in the toolbar. A popup will open where the user can upload an image and assign an image style or responsive style by selecting style from the dropdown menu.') . '</dd>';
      return $output;
  }
}