diff --git a/core/modules/views_ui/views_ui.module b/core/modules/views_ui/views_ui.module index c175caa..f7739eb 100644 --- a/core/modules/views_ui/views_ui.module +++ b/core/modules/views_ui/views_ui.module @@ -13,6 +13,31 @@ use Drupal\Core\Ajax\ReplaceCommand; /** + * Implements hook_help(). + */ +function views_ui_help($path, $arg) { + + switch ($path) { + case 'admin/help#views_ui': + $output = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t('The Views UI module provides a user interface for managing views for the Views module. For more information, see the online documentation for the Views UI module.', array('@views' => \Drupal::url('help.page', array('name' => 'views')), '@handbook' => 'https://drupal.org/documentation/modules/views_ui')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Creating and managing views.') . '
'; + $output .= '
' . t('Views can be created from the Views list page by using the "Add new view" action. Existing views can be managed from the Views list page by locating the view in the "Enabled" or "Disabled" list and selecting the desired operation action, for example "Edit".', array('@list' => \Drupal::url('views_ui.list', array('name' => 'views_ui')))) . '
'; + $output .= '
' . t('Enabling and disabling views.') . '
'; + $output .= '
' . t('Views can be enabled or disabled from the Views list page. To enable a view, find the view within the "Disabled" list and select the "Enable" operation. To disable a view find the view within the "Enabled" list and select the "Disable" operation.', array('@list' => \Drupal::url('views_ui.list', array('name' => 'views_ui')))) . '
'; + $output .= '
' . t('Exporting and importing views.') . '
'; + $output .= '
' . t('Views can be exported and imported as configuration files by using the Configuration Manager module.', array('@config' => \Drupal::url('help.page', array('name' => 'config')))) . '
'; + $output .= '
' . t('Theming views.') . '
'; + $output .= '
' . t('The template files used by views can be overridden from a custom theme. When editing a view, you can see the templates that are used and alternatives for overriding them by clicking on the "Templates" link, found in the Advanced > Other section under "Output".') . '
'; + $output .= '
'; + return $output; + } +} + +/** * Implements hook_menu(). */ function views_ui_menu() {