function entity_reference_revisions_form_field_ui_field_storage_add_form_alter in Entity Reference Revisions 8
Implements hook_form_FORM_ID_alter() for 'field_ui_field_storage_add_form'.
File
- ./
entity_reference_revisions.module, line 220 - Provides a field that can reference other entities.
Code
function entity_reference_revisions_form_field_ui_field_storage_add_form_alter(array &$form) {
// Move the "Entity reference revisions" option to the end of the list and rename it to
// "Other".
unset($form['add']['new_storage_type']['#options'][(string) t('Reference revisions')]['entity_reference_revisions']);
$form['add']['new_storage_type']['#options'][(string) t('Reference revisions')]['entity_reference_revisions'] = t('Other…');
}