diff --git a/core/modules/entity_reference/entity_reference.module b/core/modules/entity_reference/entity_reference.module index b5d70a5..cf472e8 100644 --- a/core/modules/entity_reference/entity_reference.module +++ b/core/modules/entity_reference/entity_reference.module @@ -12,6 +12,28 @@ 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 provides you with a field which can be used to create a reference to another entity within Drupal. For detailed information, see the online handbook entry for Entity Reference.', array('@entity_reference_do' => url('https://drupal.org/documentation/modules/entityreference'))) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Adding an Entity Reference field to an entity') . '
'; + $output .= '
' . t('After enabling the Entity Reference module, you can add a field of the type Entity Reference to an existing entity type (e.g. a content type) using the Field UI module. The newly added field enables you to actually create a reference to another entity.', array('@field-help' => url('admin/help/field'))) . '
'; + $output .= '
' . t('Configuring the Entity Reference field') . '
'; + $output .= '
' . t('An Entity Reference field has various settings. Like most Drupal field types, you can set it up to have muliple values. More important is the configuration of the type of items which can be referenced. Every instance of an Entity Reference field can reference exactly one entity type (e.g. Taxonomy terms, Custom blocks or nodes).') . '
'; + $output .= '
' . t('Managing Entity Reference display') . '
'; + $output .= '
' . t('An entity referenced through an Entity Reference field can be displayed in several ways. Next to a simple label linking to the entity, the referenced entity can also be rendered inside the display of the referencing entity using one of the view modes available for the referenced entity.') . '
'; + $output .= '
'; + return $output; + } +} + +/** * Implements hook_field_info(). */ function entity_reference_field_info() {