diff --git a/core/modules/entity/entity.module b/core/modules/entity/entity.module index cc22891..fedab81 100644 --- a/core/modules/entity/entity.module +++ b/core/modules/entity/entity.module @@ -30,6 +30,29 @@ function entity_help($path, $arg) { $output .= '
' . t('Each content entity can have various editing forms appropriate for different situations, which are known as "form modes". For instance, you might want to define a quick editing mode that allows users to edit the most important fields, and a full editing mode that gives access to all the fields. You can create, edit the names of, and delete form modes on the Manage custom form modes page. Once a form mode has been set up, you can choose which fields are available on that form within each entity sub-type on the Manage form display page. See the Field UI module help page for more information.', array('!form-modes' => \Drupal::url('entity.form_mode_list'), '!field_ui' => \Drupal::url('help.page', array('name' => 'field_ui')))) . '
'; $output .= ''; return $output; + + case 'admin/structure/display-modes': + return '

' . t('Configure what display modes are available for your content and forms.') . '

'; + + // View modes. + case 'admin/structure/display-modes/view': + return '

' . t('Manage custom view modes. You can create, rename or delete display modes from here.') . '

'; + + case 'admin/structure/display-modes/view/add': + return '

' . t('First pick which entity type you want a new display mode for.') . '

'; + + case 'admin/structure/display-modes/view/manage/%': + return '

' . t('You can edit the display mode name or delete the display mode.') . '

'; + + // Form modes. + case 'admin/structure/display-modes/form': + return '

' . t('Manage custom form display modes. You can create, rename or delete form display modes from here.') . '

'; + + case 'admin/structure/display-modes/form/add': + return '

' . t('First pick which entity type you want a new form display mode for.') . '

'; + + case 'admin/structure/display-modes/form/manage/%': + return '

' . t('You can edit the display mode name or delete the display mode.') . '

'; } } @@ -141,4 +164,4 @@ function entity_module_preuninstall($module) { } } } -} +} \ No newline at end of file