diff --git a/field_group.module b/field_group.module index fdf4c6d..12d0da0 100644 --- a/field_group.module +++ b/field_group.module @@ -14,10 +14,26 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Form\ConfirmFormInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Render\Element; +use Drupal\Core\Routing\RouteMatchInterface; require_once __DIR__ . '/includes/helpers.inc'; /** + * Implements hook_help(). + */ +function field_group_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + case 'help.page.field_group': + $output = '

' . t('About') . '

'; + $output .= '

' . t('Fieldgroup will, as the name implies, group fields together. All fieldable entities will have the possibility to add groups to wrap their fields together. Fieldgroup comes with default HTML wrappers like vertical tabs, horizontal tabs, accordions, fieldsets or div wrappers.') . '

'; + $output .= '

' . t('The field group project is a follow-up on the field group module in CCK. The release will only exist for Drupal 7 release and higher, so since the existence of the Fields API in core.
By moving field group to a separate module, this may open some new perspectives.', array('@linkcck' => 'http://drupal.org/project/cck')) . '

'; + $output .= '

' . t('More Information') . '

'; + $output .= '

' . t('For more information about this module please visit the module page.', array('@link' => 'https://www.drupal.org/project/field_group')) . '

'; + return $output; + } +} + +/** * Implements hook_theme_registry_alter(). */ function field_group_theme_registry_alter(&$theme_registry) {