function responsive_preview_help in Responsive Theme Preview 8
Same name and namespace in other branches
- 7 responsive_preview.module \responsive_preview_help()
Implements hook_help().
File
- ./
responsive_preview.module, line 14 - Provides a component that previews the a page in various device dimensions.
Code
function responsive_preview_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.responsive_preview':
$output = '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Responsive Preview module provides a quick way to preview a page on your site within the dimensions of many popular device and screen sizes.') . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<p>' . t('To launch a preview, first click the toolbar tab with the small device icon. The tab has the title "Preview page layout". A list of devices will appear. Selecting a device name will launch a preview of the current page within the dimensions of that device.') . '</p>';
$output .= '<p>' . t('To close the preview, click the close button signified visually by an x.') . '</p>';
return $output;
}
}