diff --git a/core/modules/field/field.module b/core/modules/field/field.module index fc6ec9e..af0e384 100644 --- a/core/modules/field/field.module +++ b/core/modules/field/field.module @@ -77,11 +77,22 @@ function field_help($route_name, Request $request) { case 'help.page.field': $output = ''; $output .= '

' . t('About') . '

'; - $output .= '

' . t('The Field module allows custom data fields to be defined for entity types (entities include content items, comments, user accounts, and taxonomy terms). The Field module takes care of storing, loading, editing, and rendering field data. Most users will not interact with the Field module directly, but will instead use the Field UI module user interface. Module developers can use the Field API to make new entity types "fieldable" and thus allow fields to be attached to them. For more information, see the online handbook entry for Field module.', array('@field-ui-help' => url('admin/help/field_ui'), '@field' => 'http://drupal.org/documentation/modules/field')) . '

'; + $output .= '

' . t('The Field module allows custom data fields to be defined for entity types (entities include content items, comments, user accounts, and taxonomy terms). The Field module takes care of storing, loading, editing, and rendering field data. Most users will not interact with the Field module directly, but will instead use the Field UI module user interface. Module developers can use the Field API to make new entity types "fieldable" and thus allow fields to be attached to them. For more information, see the online handbook entry for Field module.', array('!entity-help' => \Drupal::url('help.page', array('name' => 'entity')), '!field-ui-help' => \Drupal::url('help.page', array('name' => 'field_ui')), '!field' => 'http://drupal.org/documentation/modules/field')) . '

'; $output .= '

' . t('Uses') . '

'; $output .= '
'; $output .= '
' . t('Enabling field types') . '
'; - $output .= '
' . t('The Field module provides the infrastructure for fields and field attachment; the field types and input widgets themselves are provided by additional modules. The modules can be enabled from the Modules administration page. Drupal core includes the following field type modules: Text, Number, Email, Link, Telephone, Image, File, Options, Taxonomy, and Entity Reference. Additional fields and widgets may be provided by contributed modules, which you can find in the contributed module section of Drupal.org.', array('@modules' => url('admin/modules'), '@contrib' => 'http://drupal.org/project/modules', '@options' => url('admin/help/options'))); + $output .= '
' . t('The Field module provides the infrastructure for fields and field attachment; the field types and input widgets themselves are provided by additional modules. Some of the modules are required; the optional modules can be enabled from the Extend administration page. Drupal core includes the following field type modules: Text (required), Taxonomy (required), Image (required), File (required), Datetime (required), Entity Reference (required), and Telephone (optional); the required Options module provides input widgets for other field modules. Additional fields and widgets may be provided by contributed modules, which you can find in the contributed module section of Drupal.org.', array( + '!modules' => \Drupal::url('system.modules_list'), + '!contrib' => 'http://drupal.org/project/modules', + '!text-help' => \Drupal::url('help.page', array('name' => 'text')), + '!taxonomy-help' => \Drupal::url('help.page', array('name' => 'taxonomy')), + '!image-help' => \Drupal::url('help.page', array('name' => 'image')), + '!file-help' => \Drupal::url('help.page', array('name' => 'file')), + '!datetime-help' => \Drupal::url('help.page', array('name' => 'datetime')), + '!telephone-help' => (\Drupal::moduleHandler()->moduleExists('telephone')) ? \Drupal::url('help.page', array('name' => 'telephone')) : '#', + '!entity-reference-help' => \Drupal::url('help.page', array('name' => 'entity_reference')), + '!options-help' => \Drupal::url('help.page', array('name' => 'options')), + )); // Make a list of all widget and field modules currently enabled, ordered // by displayed module name (module names are not translated).