function skinr_ui_help in Skinr 8.2
Same name and namespace in other branches
- 6.2 skinr_ui.module \skinr_ui_help()
- 7.2 skinr_ui.module \skinr_ui_help()
Implements hook_help().
1 call to skinr_ui_help()
- skinr_context_ui_help in skinr_context/
skinr_context_ui.module - Implements hook_help().
File
- skinr_ui/
skinr_ui.module, line 77 - Handles Skinr UI functionality allowing users to apply skins to their site.
Code
function skinr_ui_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
$output = '';
switch ($route_name) {
case 'help.page.skinr_ui':
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Skinr UI module provides an interface for managing skins for the <a href="@skinr">Skinr module</a>. For more information, see the <a href="@handbook">online documentation for the Skinr UI module</a>.', array(
'@skinr' => \Drupal::url('help.page', array(
'name' => 'skinr',
)),
'@handbook' => 'https://skinr.org',
)) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Managing skin plugins.') . '</dt>';
$output .= '<dd>' . t('Skin plugins can be managed from the <a href="@list">Skinr plugin library page</a>. Skin plugins are configured specifically for each theme. The Skinr plugin library page opens with the default theme, but you can switch to other installed themes.', array(
'@list' => \Drupal::url('skinr_ui.library'),
)) . '</dd>';
$output .= '<dt>' . t('Creating and managing skins.') . '</dt>';
$output .= '<dd>' . t('Skins can be created from the <a href="@list">Skins list page</a> by using the "Add new skin" action. Existing views can be managed from the <a href="@list">Skins list page</a> by locating the view in the "Enabled" or "Disabled" list and selecting the desired operation action, for example "Edit".', array(
'@list' => \Drupal::url('skinr_ui.list'),
)) . '</dd>';
$output .= '<dt>' . t('Enabling and disabling skins.') . '<dt>';
$output .= '<dd>' . t('Skins can be enabled or disabled from the <a href="@list">Skins list page</a>. To enable a skin, find the skin within the "Disabled" list and select the "Enable" operation. To disable a skin find the view within the "Enabled" list and select the "Disable" operation.', array(
'@list' => \Drupal::url('skinr_ui.list'),
)) . '</dd>';
$output .= '<dt>' . t('Exporting and importing skins.') . '</dt>';
$output .= '<dd>' . t('Skins can be exported and imported as configuration files by using the <a href="@config">Configuration Manager module</a>.', array(
'@config' => \Drupal::url('help.page', array(
'name' => 'config',
)),
)) . '</dd>';
}
return $output;
}