diff --git a/core/modules/entity_reference/entity_reference.module b/core/modules/entity_reference/entity_reference.module index 10364d8..e99dd92 100644 --- a/core/modules/entity_reference/entity_reference.module +++ b/core/modules/entity_reference/entity_reference.module @@ -12,6 +12,26 @@ use Drupal\field\FieldInterface; /** + * Implements hook_help(). + */ +function entity_reference_help($path, $arg) { + switch ($path) { + case 'admin/help#entity_reference': + $output = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t('The Entity Reference module defines a field type which lets you create links to other entities (such as content items, taxonomy terms, etc.) within Drupal (see the Field module help page for more information about fields). For more information, see the online documentation for Entity Reference module.', array('!field-help' => url('admin/help/field'), '!er_do' => 'https://drupal.org/documentation/modules/entityreference')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Adding entity references to content') . '
'; + $output .= '
' . t('The Entity Reference module allows you to add links to other entities within Drupal. Therefore a field of the type Entity Reference must be added, using the Field UI module. You can only link to one kind of entity. Depending on the chosen entity type, additional filtering and sorting options are available for the list of entities that can be referred to.', array('!fieldui-help' => url('admin/help/field_ui'))) . '
'; + $output .= '
' . t('Managing entity reference display') . '
'; + $output .= '
' . t('A reference can be displayed as a simple label with a link to the entity. But the the referenced entity can also be rendered inside the display of the referencing entity using one of the available view modes (such as a teaser).') . '
'; + $output .= '
'; + return $output; + } +} + +/** * Implements hook_field_info_alter(). */ function entity_reference_field_info_alter(&$info) {