Skip to content

Commit 5257eee

Browse files
committed
updated field type conversion example
1 parent 874f936 commit 5257eee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/pattern_builder_importer.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ This error occurs when the field type determine from the property's schema is di
297297
The patternbuilder.install provides a helper function to convert text fields. This should be added to an update function before the fields are imported.
298298
299299
```php
300+
/**
301+
* Convert awesome_pattern text property to a long text field.
302+
*/
300303
function mymodule_update_7123() {
301304
$pattern_name = 'awesome_pattern';
302305
$property_name = 'text';
@@ -331,7 +334,7 @@ function mymodule_update_7123() {
331334
}
332335
```
333336

334-
Allowed conversions:
337+
Allowed Drupal field type conversions via patternbuilder_convert_text_field():
335338

336339
- 'text' TO 'text_long' or 'text_with_summary'.
337340
- 'text_long' TO 'text_with_summary'

0 commit comments

Comments
 (0)